summaryrefslogtreecommitdiff
path: root/test/misc/fdopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/misc/fdopen.c')
-rw-r--r--test/misc/fdopen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/misc/fdopen.c b/test/misc/fdopen.c
index 11681cfe3..8842d0583 100644
--- a/test/misc/fdopen.c
+++ b/test/misc/fdopen.c
@@ -35,6 +35,8 @@ main (int argc, char *argv[])
fp = fdopen (fd, "a");
assert (fp != NULL);
+ /* SuSv3 says that doing a fdopen() does not reset the file position,
+ * thus the '5' here is correct, not '14'. */
assert (ftell (fp) == 5);
the_end: