mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
maint: fix dd nocache test to be independent of current stdin
* tests/dd/nocache: Don't assume stdin is a pipe
This commit is contained in:
1 parent
5f3115535b
commit
5bf48c1186
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user