summaryrefslogtreecommitdiff
path: root/tests/du/slink
diff options
context:
space:
mode:
Diffstat (limited to 'tests/du/slink')
-rwxr-xr-xtests/du/slink14
1 files changed, 1 insertions, 13 deletions
diff --git a/tests/du/slink b/tests/du/slink
index 5913d8371..e9f7bbd7d 100755
--- a/tests/du/slink
+++ b/tests/du/slink
@@ -21,14 +21,7 @@ if test "$VERBOSE" = yes; then
du --version
fi
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
+. $srcdir/../test-lib.sh
# Determine if `.' is on a local (would non-NFS be sufficient?) file system.
# On at least some NFS implementations, symlinks never take up space,
@@ -55,11 +48,6 @@ if df --type=nfsv3 . >/dev/null 2>&1; then
(exit 77); exit 77
fi
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
fail=0
symlink_name_lengths='1 15 16 31 32 59 60 63 64 127 128 255 256 511 512 1024'
for len in $symlink_name_lengths; do