summaryrefslogtreecommitdiff
path: root/tests/du
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-03-21 19:20:14 +0000
committerJim Meyering <jim@meyering.net>2004-03-21 19:20:14 +0000
commit9fb05110ea7084a1f60d20df650c32533af0cac9 (patch)
tree3d36d52fe266b4c148942492868f12ab22bc6b8f /tests/du
parent03ed43f2b0ac3b93c5b43db809a654324862a268 (diff)
downloadcoreutils-9fb05110ea7084a1f60d20df650c32533af0cac9.tar.xz
Also test with a non-regular file:
--files0-from=/dev/null
Diffstat (limited to 'tests/du')
-rwxr-xr-xtests/du/files0-from4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/du/files0-from b/tests/du/files0-from
index d9924a937..d1fbe5b82 100755
--- 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"}],