projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests for module 'fchmod'.
[gnulib.git]
/
tests
/
test-fclose.c
diff --git
a/tests/test-fclose.c
b/tests/test-fclose.c
index
d9b9406
..
a11eca9
100644
(file)
--- a/
tests/test-fclose.c
+++ b/
tests/test-fclose.c
@@
-62,9
+62,7
@@
main (int argc, char **argv)
ASSERT (errno == EBADF);
ASSERT (lseek (fd, 0, SEEK_CUR) == 2);
ASSERT (errno == EBADF);
ASSERT (lseek (fd, 0, SEEK_CUR) == 2);
-#if GNULIB_FFLUSH
- /* Likewise for an input stream, but only when we know fflush works
- on input streams. */
+ /* Likewise for an input stream. */
fd2 = dup (fd);
ASSERT (0 <= fd2);
f = fdopen (fd2, "r");
fd2 = dup (fd);
ASSERT (0 <= fd2);
f = fdopen (fd2, "r");
@@
-75,7
+73,6
@@
main (int argc, char **argv)
ASSERT (lseek (fd2, 0, SEEK_CUR) == -1);
ASSERT (errno == EBADF);
ASSERT (lseek (fd, 0, SEEK_CUR) == 3);
ASSERT (lseek (fd2, 0, SEEK_CUR) == -1);
ASSERT (errno == EBADF);
ASSERT (lseek (fd, 0, SEEK_CUR) == 3);
-#endif
/* Test that fclose() sets errno if someone else closes the stream
fd behind the back of stdio. */
/* Test that fclose() sets errno if someone else closes the stream
fd behind the back of stdio. */