summaryrefslogtreecommitdiff
path: root/tests/ln/target-1
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ln/target-1')
-rwxr-xr-xtests/ln/target-18
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/ln/target-1 b/tests/ln/target-1
index 3865e2cde..1f1ebc2d5 100755
--- a/tests/ln/target-1
+++ b/tests/ln/target-1
@@ -21,12 +21,8 @@
# ln: `d/.': cannot overwrite directory
# Based on a test case from Dmitry V. Levin.
-if test "$VERBOSE" = yes; then
- set -x
- ln --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ln --version
mkdir d || framework_failure
ln -s --target-dir=d ../f || fail=1