tests: avoid more large file warnings
authorEric Blake <ebb9@byu.net>
Mon, 11 Jan 2010 17:35:52 +0000 (10:35 -0700)
committerEric Blake <ebb9@byu.net>
Tue, 12 Jan 2010 05:16:20 +0000 (22:16 -0700)
* tests/test-fflush.c: Avoid warning about ftell use.
* tests/test-fseek.c: Avoid warning about fseek use.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
tests/test-fflush.c
tests/test-fseek.c

index 3509cdd..143056e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-01-11  Eric Blake  <ebb9@byu.net>
+
+       tests: avoid more large file warnings
+       * tests/test-fflush.c: Avoid warning about ftell use.
+       * tests/test-fseek.c: Avoid warning about fseek use.
+
 2010-01-10  Bruno Haible  <bruno@clisp.org>
 
        nproc: Work better on Linux when /proc and /sys are not mounted.
index 38bedd9..12403e2 100644 (file)
@@ -18,6 +18,9 @@
 
 #include <config.h>
 
+/* None of the files accessed by this test are large, so disable the
+   ftell link warning if we are not using the gnulib ftell module.  */
+#define _GL_NO_LARGE_FILES
 #include <stdio.h>
 
 #include "signature.h"
index 9b25e1d..46d5c8a 100644 (file)
@@ -18,6 +18,9 @@
 
 #include <config.h>
 
+/* None of the files accessed by this test are large, so disable the
+   fseek link warning if the user requested GNULIB_POSIXCHECK.  */
+#define _GL_NO_LARGE_FILES
 #include <stdio.h>
 
 #include "signature.h"