From 9fb05110ea7084a1f60d20df650c32533af0cac9 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 21 Mar 2004 19:20:14 +0000 Subject: Also test with a non-regular file: --files0-from=/dev/null --- tests/du/files0-from | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/du/files0-from') 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"}], -- cgit v1.2.3-54-g00ecf