summaryrefslogtreecommitdiff
path: root/tests/touch/dangling-symlink
diff options
context:
space:
mode:
Diffstat (limited to 'tests/touch/dangling-symlink')
-rwxr-xr-xtests/touch/dangling-symlink3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/touch/dangling-symlink b/tests/touch/dangling-symlink
index c7cde334c..7e6e0080c 100755
--- a/tests/touch/dangling-symlink
+++ b/tests/touch/dangling-symlink
@@ -7,8 +7,9 @@ if test "$VERBOSE" = yes; then
touch --version
fi
-fail=0
+rm -f touch-target t-symlink
ln -s touch-target t-symlink
+fail=0
# This used to infloop.
touch t-symlink || fail=1