changeset 12730:8387bca9d256

tests: avoid more large file warnings * 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>
author Eric Blake <ebb9@byu.net>
date Mon, 11 Jan 2010 10:35:52 -0700
parents f66d17eada13
children 62f595fee4e1
files ChangeLog tests/test-fflush.c tests/test-fseek.c
diffstat 3 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/tests/test-fflush.c
+++ b/tests/test-fflush.c
@@ -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"
--- a/tests/test-fseek.c
+++ b/tests/test-fseek.c
@@ -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"