summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/misc/split-fail6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/misc/split-fail b/tests/misc/split-fail
index e36c86dc9..68c9d7334 100755
--- a/tests/misc/split-fail
+++ b/tests/misc/split-fail
@@ -64,5 +64,11 @@ split: line count option -99*... is too large
EOF
compare out exp || fail=1
+# Make sure split fails when it can't read input
+# (the current directory in this case)
+if ! cat . >/dev/null; then
+ # can't read() directories
+ split . && fail=1
+fi
Exit $fail