summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2011-03-05 09:53:00 +0000
committerPádraig Brady <P@draigBrady.com>2011-03-05 09:53:00 +0000
commit5bf48c1186762b66b39676cf4c00be714d401ec3 (patch)
treeae1e1212d27a3e9f9ae8cd77cac96d77b2ab9e6a /tests
parent5f3115535b32a9c0cc5aee5cf5b4001f684ad56e (diff)
downloadcoreutils-5bf48c1186762b66b39676cf4c00be714d401ec3.tar.xz
maint: fix dd nocache test to be independent of current stdin
* tests/dd/nocache: Don't assume stdin is a pipe
Diffstat (limited to 'tests')
-rwxr-xr-xtests/dd/nocache2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/dd/nocache b/tests/dd/nocache
index b0d4cc107..b5afabd35 100755
--- a/tests/dd/nocache
+++ b/tests/dd/nocache
@@ -23,7 +23,7 @@ print_ver_ dd
dd iflag=nocache oflag=nocache if=/dev/null of=/dev/null || fail=1
# We should get an error for trying to process a pipe
-dd iflag=nocache count=0 && fail=1
+dd count=0 | dd iflag=nocache count=0 && fail=1
# O_DIRECT is orthogonal to drop cache so mutually exclusive
dd iflag=nocache,direct if=/dev/null && fail=1