projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03ed43f
)
Also test with a non-regular file:
author
Jim Meyering
<jim@meyering.net>
Sun, 21 Mar 2004 19:20:14 +0000
(19:20 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 21 Mar 2004 19:20:14 +0000
(19:20 +0000)
--files0-from=/dev/null
tests/du/files0-from
patch
|
blob
|
history
diff --git
a/tests/du/files0-from
b/tests/du/files0-from
index d9924a937869ecbc0b94f48d9e690cf48b6f7fc1..d1fbe5b82a7fd27fb123fb0b5210772f3528889e 100755
(executable)
--- a/
tests/du/files0-from
+++ b/
tests/du/files0-from
@@
-40,6
+40,10
@@
my @Tests =
['empty', '--files0-from=-', {EXIT=>1},
{ERR => "du: no files specified in `-'\n"}],
+ # empty input, from non-regular file
+ ['empty-nonreg', '--files0-from=/dev/null', {EXIT=>1},
+ {ERR => "du: no files specified in `/dev/null'\n"}],
+
# one NUL
['nul-1', '--files0-from=-', '<', {IN=>"\0"}, {EXIT=>1},
{ERR => "du: no files specified in `-'\n"}],