summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-09-28 17:46:43 +0200
committerBruno Haible <bruno@clisp.org>2019-09-28 17:46:43 +0200
commit325321ef5c5f60bc75d757ce8048f86a597c7479 (patch)
treed89596257c6aadb23223da056e6b038858c92931 /tests
parent49939c10add166e81112043bf3238b7a782e9b48 (diff)
downloadgnulib-325321ef5c5f60bc75d757ce8048f86a597c7479.tar.gz
Update comments that refer to POSIX.
* lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant sentence about trailing slashes. * lib/fflush.c: Clarify the reasoning. * tests/test-fflush2.c: Cite the relevant sentence.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-fflush2.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test-fflush2.c b/tests/test-fflush2.c
index e7bfa654d8..4caf868a0e 100644
--- a/tests/test-fflush2.c
+++ b/tests/test-fflush2.c
@@ -69,7 +69,10 @@ main (int argc, char **argv)
according to the Austin Group's resolution on 2009-01-08. */
/* Check that fflush after a non-backup ungetc() call discards the
ungetc buffer. This is mandated by POSIX
- <https://pubs.opengroup.org/onlinepubs/9699919799/functions/fflush.html> */
+ <https://pubs.opengroup.org/onlinepubs/9699919799/functions/fflush.html>:
+ "...any characters pushed back onto the stream by ungetc()
+ or ungetwc() that have not subsequently been read from the
+ stream shall be discarded..." */
c = fgetc (stdin);
ASSERT (c == '#');