From: Jim Meyering Date: Sun, 21 Mar 2004 19:20:14 +0000 (+0000) Subject: Also test with a non-regular file: X-Git-Tag: v5.3.0~1994 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fb05110ea7084a1f60d20df650c32533af0cac9;p=thirdparty%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 d9924a9378..d1fbe5b82a 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"}],