summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-14 03:33:40 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-14 03:33:40 +0000
commit70f5583d2320aec03aba29d7647c362d042cc360 (patch)
tree3dadbcd8bbe60829836c16dbff72b8870f230be2
parentd42f59881ffe221bd4960addb36e21aad0d98d18 (diff)
document why the ftell() should be 5 and not 14
-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: