summaryrefslogtreecommitdiff
path: root/tests/du/files0-from
diff options
context:
space:
mode:
Diffstat (limited to 'tests/du/files0-from')
-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"}],