summaryrefslogtreecommitdiff
path: root/tests/rm/r-root.sh
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2014-01-13 19:39:52 +0000
committerPádraig Brady <P@draigBrady.com>2014-01-13 23:11:17 +0000
commitba25b75dc2a4f37cb65b5e2ff1bf41bd1707770b (patch)
tree7a5dbdc9cbdb81d1b05631deb0fe251071a22088 /tests/rm/r-root.sh
parent243128dbf0293be7b170dd47c8dbf3ed1834c093 (diff)
downloadcoreutils-ba25b75dc2a4f37cb65b5e2ff1bf41bd1707770b.tar.xz
maint: tests: refactor gcc commands for building shared lib
* init.cfg (gcc_shared_): A new function refactored from tests. (require_gcc_shared_): Adjust to call gcc_shared_() to build the test library, and remove that library before the function returns. * tests/cp/nfs-removal-race.sh: Call the new gcc_shared_(). * tests/df/no-mtab-status.sh: Likewise. * tests/df/skip-duplicates.sh: Likewise. * tests/ls/getxattr-speedup.sh: Likewise. * tests/rm/r-root.sh: Likewise.
Diffstat (limited to 'tests/rm/r-root.sh')
-rwxr-xr-xtests/rm/r-root.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/rm/r-root.sh b/tests/rm/r-root.sh
index 06e57696c..04a88eb27 100755
--- a/tests/rm/r-root.sh
+++ b/tests/rm/r-root.sh
@@ -60,7 +60,7 @@ int unlinkat (int dirfd, const char *pathname, int flags)
EOF
# Then compile/link it:
-gcc -Wall --std=gnu99 -shared -fPIC -ldl -O2 k.c -o k.so \
+gcc_shared_ k.c k.so \
|| framework_failure_ 'failed to build shared library'
#-------------------------------------------------------------------------------