summaryrefslogtreecommitdiff
path: root/tests/touch/read-only
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-09-26 23:02:34 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-09-26 23:02:34 +0000
commit4b2dd7730a3b771c6509aedd34fdbdb0f699d501 (patch)
tree17b9b02aa9e1b096238d45dd47eb241bfe3c2032 /tests/touch/read-only
parent2f897e72580eb68526972caf3ef815c5be50daba (diff)
downloadcoreutils-4b2dd7730a3b771c6509aedd34fdbdb0f699d501.tar.xz
Test "touch -" too.
Diffstat (limited to 'tests/touch/read-only')
-rwxr-xr-xtests/touch/read-only2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/touch/read-only b/tests/touch/read-only
index 109ab00b1..11516d3c8 100755
--- a/tests/touch/read-only
+++ b/tests/touch/read-only
@@ -29,4 +29,6 @@ fail=0
touch read-only || fail=1
+touch - 1< read-only 2> /dev/null && { test ! -f - || fail=1; }
+
(exit $fail); exit $fail