From: Jim Meyering Date: Sun, 21 Mar 2004 19:20:14 +0000 (+0000) Subject: Also test with a non-regular file: X-Git-Tag: COREUTILS-5_3_0~1994 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9fb05110ea7084a1f60d20df650c32533af0cac9;p=platform%2Fupstream%2Fcoreutils.git Also test with a non-regular file: --files0-from=/dev/null --- 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"}],