summaryrefslogtreecommitdiff
path: root/tests/misc/truncate-fail-diag
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/truncate-fail-diag')
-rwxr-xr-xtests/misc/truncate-fail-diag7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/misc/truncate-fail-diag b/tests/misc/truncate-fail-diag
index 32896258d..0c6bb1c57 100755
--- a/tests/misc/truncate-fail-diag
+++ b/tests/misc/truncate-fail-diag
@@ -42,9 +42,8 @@ compare out exp || fail=1
dir=$d1/
truncate -s0 $dir > out 2>&1 && fail=1
-cat <<EOF > exp
-truncate: cannot open \`$dir' for writing: Is a directory
-EOF
-compare out exp || fail=1
+#The following can be returned at least
+#truncate: cannot open \`$dir' for writing: Not a directory
+#truncate: cannot open \`$dir' for writing: Is a directory
(exit $fail); exit $fail