[Bug 204156] fmemopen tests failing after r289863

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Nov 1 05:02:43 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204156

--- Comment #4 from Andrey A. Chernov <ache at FreeBSD.org> ---
(In reply to Andrey A. Chernov from comment #2)
The last case:
failed: /usr/src/lib/libc/tests/stdio/fmemopen2_test.c:203: pos == 0 not met
not failed in -current when written in plain C:

fp = fmemopen(buf, sizeof(buf), "a+");
fwrite(str2, 1, sizeof(str2), fp);
fseek(fp, 0, SEEK_SET);
printf("pos %d\n", ftell(fp) == 0);

So I think all of this is ATF-specific bugs, probably with wrong type cast in
their macros, and I don't want to debug ATF. If you think otherwise, please
post plain C test which fails after r289863. 

IMHO, ATF is evil and can't be used to prove anything, only to extract from
there and convert to plain C.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-testing mailing list