summaryrefslogtreecommitdiff
path: root/tests/cp/nfs-removal-race.sh
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2013-03-27 12:51:43 +0000
committerPádraig Brady <P@draigBrady.com>2013-04-04 03:02:10 +0100
commite92d16f68a97575ed7112204b069514edc8d54a0 (patch)
treea3d9089c0eddddba5cb96c78433ed513f4ec15f7 /tests/cp/nfs-removal-race.sh
parent7abf99e1907b1b05cb45eacaa98bfa73efe0ab92 (diff)
downloadcoreutils-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/cp/nfs-removal-race.sh')
-rwxr-xr-xtests/cp/nfs-removal-race.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/cp/nfs-removal-race.sh b/tests/cp/nfs-removal-race.sh
index b606784ec..e59908a91 100755
--- a/tests/cp/nfs-removal-race.sh
+++ b/tests/cp/nfs-removal-race.sh
@@ -30,6 +30,7 @@
. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
print_ver_ cp
+require_gcc_shared_
# Replace each stat call with a call to this wrapper.
cat > k.c <<'EOF' || framework_failure_
@@ -58,7 +59,7 @@ EOF
# Then compile/link it:
$CC -shared -fPIC -O2 k.c -o k.so -ldl \
- || framework_failure_ 'failed to compile with -shared -fPIC'
+ || framework_failure_ 'failed to build shared library'
touch d2 || framework_failure_
echo xyz > src || framework_failure_