diff options
author | Jim Meyering <jim@meyering.net> | 2004-03-21 19:20:14 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-03-21 19:20:14 +0000 |
commit | 9fb05110ea7084a1f60d20df650c32533af0cac9 (patch) | |
tree | 3d36d52fe266b4c148942492868f12ab22bc6b8f /tests/du | |
parent | 03ed43f2b0ac3b93c5b43db809a654324862a268 (diff) | |
download | coreutils-9fb05110ea7084a1f60d20df650c32533af0cac9.tar.xz |
Also test with a non-regular file:
--files0-from=/dev/null
Diffstat (limited to 'tests/du')
-rwxr-xr-x | tests/du/files0-from | 4 |
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"}], |