From e92d16f68a97575ed7112204b069514edc8d54a0 Mon Sep 17 00:00:00 2001 From: Pádraig Brady
Date: Wed, 27 Mar 2013 12:51:43 +0000 Subject: tests: avoid shared lib tests on unsupported platforms * init.cfg (require_gcc_shared_): A new function to check that we can build shared libraries in the particular manner we use in our tests. * tests/cp/nfs-removal-race.sh: Use require_gcc_shared_. Then fail rather than skip, if the actual shared lib build fails. * tests/df/no-mtab-status.sh: Likewise. * tests/df/skip-duplicates.sh: Likewise. * tests/ls/getxattr-speedup.sh: Likewise. Reported in http://bugs.gnu.org/14024 --- tests/ls/getxattr-speedup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/ls') diff --git a/tests/ls/getxattr-speedup.sh b/tests/ls/getxattr-speedup.sh index 224362f0c..989a5263d 100755 --- a/tests/ls/getxattr-speedup.sh +++ b/tests/ls/getxattr-speedup.sh @@ -21,6 +21,7 @@ . "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ ls +require_gcc_shared_ # Replace each getxattr and lgetxattr call with a call to these stubs. # Count those and write the total number of calls to the file "x" @@ -48,7 +49,7 @@ EOF # Then compile/link it: $CC -shared -fPIC -O2 k.c -o k.so \ - || framework_failure_ 'failed to compile with -shared -fPIC' + || framework_failure_ 'failed to build shared library' # Create a few files: seq 20 | xargs touch || framework_failure_ -- cgit v1.2.3-70-g09d2