summaryrefslogtreecommitdiff
path: root/test/unistd/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'test/unistd/Makefile.in')
-rw-r--r--test/unistd/Makefile.in15
1 files changed, 14 insertions, 1 deletions
diff --git a/test/unistd/Makefile.in b/test/unistd/Makefile.in
index ed33d9ae8..da59a3689 100644
--- a/test/unistd/Makefile.in
+++ b/test/unistd/Makefile.in
@@ -1,9 +1,10 @@
# uClibc unistd tests
# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+TESTS_DISABLED :=
# If LFS is not set, get rid of all *64 tests up front
ifeq ($(UCLIBC_HAS_LFS),)
-TESTS_DISABLED := tst-preadwrite64 tst-posix_fallocate64 tst-fallocate64
+TESTS_DISABLED += tst-preadwrite64
endif
# If we don't have LINUX_SPECIFIC, then get rid of tst-fallocate
@@ -11,6 +12,10 @@ ifeq ($(UCLIBC_LINUX_SPECIFIC),)
TESTS_DISABLED += tst-fallocate
endif
+ifeq ($(TARGET_avr32),y)
+TESTS_DISABLED += tst-fallocate tst-posix_fallocate tst-fallocate64
+endif
+
# The logic is similar for HAS_ADVANCED_REALTIME and
# tst-posix_fallocate/tst-posix_fallocate64
ifeq ($(UCLIBC_HAS_ADVANCED_REALTIME),)
@@ -26,6 +31,14 @@ else
OPTS_tstgetopt := -a -b -cfoobar --required foobar --optional=bazbug --none --colou --color --colour random
endif
+# for embedded systems 4 GB disk space is not available
+TESTS_DISABLED += tst-posix_fallocate64 tst-fallocate64
+
+CFLAGS_tst-fallocate = -fPIC
+CFLAGS_tst-posix_fallocate = -fPIC
+CFLAGS_tst-preadwrite = -fPIC
+CFLAGS_tst-preadwrite64 = -fPIC
+
# getconf.c lives in utils/
# Testsuite cannot currently be built with O= anyway, so hardcode path here
getconf.c: