diff options
Diffstat (limited to 'tests/touch/fail-diag')
-rwxr-xr-x | tests/touch/fail-diag | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/touch/fail-diag b/tests/touch/fail-diag index a4c81c624..a2613fe23 100755 --- a/tests/touch/fail-diag +++ b/tests/touch/fail-diag @@ -20,15 +20,11 @@ print_ver_ touch skip_if_root_ -d1=no-$$ -dir=/$d1/such-dir -# Ensure that $d1 doesn't already exist. -ls -d $d1 2> /dev/null && framework_failure +file=/no-such-dir/file - -touch $dir > out 2>&1 && fail=1 +touch $file > out 2>&1 && fail=1 cat <<EOF > exp -touch: cannot touch \`$dir': No such file or directory +touch: cannot touch \`$file': No such file or directory EOF compare out exp || fail=1 |