diff options
author | Pádraig Brady <P@draigBrady.com> | 2013-03-27 12:51:43 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2013-04-04 03:02:10 +0100 |
commit | e92d16f68a97575ed7112204b069514edc8d54a0 (patch) | |
tree | a3d9089c0eddddba5cb96c78433ed513f4ec15f7 /tests/df | |
parent | 7abf99e1907b1b05cb45eacaa98bfa73efe0ab92 (diff) | |
download | coreutils-e92d16f68a97575ed7112204b069514edc8d54a0.tar.xz |
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
Diffstat (limited to 'tests/df')
-rwxr-xr-x | tests/df/no-mtab-status.sh | 3 | ||||
-rwxr-xr-x | tests/df/skip-duplicates.sh | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/df/no-mtab-status.sh b/tests/df/no-mtab-status.sh index 896a9fe55..2e6b61bb8 100755 --- a/tests/df/no-mtab-status.sh +++ b/tests/df/no-mtab-status.sh @@ -19,6 +19,7 @@ . "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ df +require_gcc_shared_ df || skip_ "df fails" @@ -45,7 +46,7 @@ EOF # Then compile/link it: $CC -shared -fPIC -ldl -O2 k.c -o k.so \ - || skip_ "getmntent hack does not work on this platform" + || framework_failure_ 'failed to build shared library' # Test if LD_PRELOAD works: LD_PRELOAD=./k.so df diff --git a/tests/df/skip-duplicates.sh b/tests/df/skip-duplicates.sh index ad5249b59..2b7de562b 100755 --- a/tests/df/skip-duplicates.sh +++ b/tests/df/skip-duplicates.sh @@ -19,6 +19,7 @@ . "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ df +require_gcc_shared_ df || skip_ "df fails" @@ -58,7 +59,7 @@ EOF # Then compile/link it: gcc --std=gnu99 -shared -fPIC -ldl -O2 k.c -o k.so \ - || skip_ "getmntent hack does not work on this platform" + || framework_failure_ 'failed to build shared library' # Test if LD_PRELOAD works: LD_PRELOAD=./k.so df |