diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2010-06-11 19:20:50 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2010-06-11 19:20:50 +0200 |
commit | 8642c931a3ef2e944871b32b293df872eb7a1ae0 (patch) | |
tree | cda2b4ce008a9db352516b08ece20481c68ca18b /test | |
parent | 164632713b320eb022629696fefff2cf7c38d485 (diff) |
testsuite: disable some tests for !LFS
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/misc/Makefile.in | 4 | ||||
-rw-r--r-- | test/nptl/tst-umask1.c | 4 | ||||
-rw-r--r-- | test/stat/Makefile.in | 3 | ||||
-rw-r--r-- | test/unistd/Makefile.in | 3 |
4 files changed, 11 insertions, 3 deletions
diff --git a/test/misc/Makefile.in b/test/misc/Makefile.in index 43d1ae77f..226321131 100644 --- a/test/misc/Makefile.in +++ b/test/misc/Makefile.in @@ -2,7 +2,9 @@ # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. TESTS_DISABLED := outb tst-fnmatch bug-glob1 tst-gnuglob - +ifeq ($(UCLIBC_HAS_LFS),) +TESTS_DISABLED += dirent64 +endif CFLAGS_dirent64 := -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 DODIFF_dirent := 1 diff --git a/test/nptl/tst-umask1.c b/test/nptl/tst-umask1.c index d64a8be3d..4bbf6d0d7 100644 --- a/test/nptl/tst-umask1.c +++ b/test/nptl/tst-umask1.c @@ -56,8 +56,8 @@ work (const char *fname, int mask) } if (fcts[i].is_fd) close (fd); - struct stat64 st; - if (stat64 (fname, &st) == -1) + struct stat st; + if (stat (fname, &st) == -1) { printf ("cannot stat %s after %s: %m\n", fname, fcts[i].name); exit (1); diff --git a/test/stat/Makefile.in b/test/stat/Makefile.in index ca5aa04a2..9c06dedb3 100644 --- a/test/stat/Makefile.in +++ b/test/stat/Makefile.in @@ -1,6 +1,9 @@ # uClibc stat tests # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. +ifeq ($(UCLIBC_HAS_LFS),) +TESTS_DISABLED := stat64 +endif CFLAGS_stat64 := -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 DODIFF_stat := 1 diff --git a/test/unistd/Makefile.in b/test/unistd/Makefile.in index 8ddfc52da..c542f98fa 100644 --- a/test/unistd/Makefile.in +++ b/test/unistd/Makefile.in @@ -1,6 +1,9 @@ # uClibc unistd tests # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. +ifeq ($(UCLIBC_HAS_LFS),) +TESTS_DISABLED := tst-preadwrite64 +endif OPTS_getopt := -abcXXX -9 OPTS_getopt_long := --add XXX --delete YYY --verbose ifeq ($(UCLIBC_HAS_GNU_GETOPT),y) |