fclose: add some tests
authorEric Blake <eblake@redhat.com>
Mon, 2 May 2011 19:38:23 +0000 (13:38 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 2 May 2011 21:23:49 +0000 (15:23 -0600)
commit1fc3525d1fd7dafbc946dab4c754c593f448c21c
treebeb0ae86f82faaf41e9b0df21120a7f9235a51c3
parent001e7d63dfe613e249e9f4ab53170b401532afd3
fclose: add some tests

POSIX requires that fclose() on seekable input streams rewind back
to the next byte not actually given to the application.  Glibc fails
this test.  See:
http://sourceware.org/bugzilla/show_bug.cgi?id=3746
http://sourceware.org/bugzilla/show_bug.cgi?id=12724

Likewise for FreeBSD.

Cygwin 1.7.9 and Solaris 10 pass, however.

* modules/fclose-tests: New test module.
* tests/test-fclose.c: New file.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
doc/posix-functions/fclose.texi
modules/fclose-tests [new file with mode: 0644]
tests/test-fclose.c [new file with mode: 0644]