Also test with a non-regular file:
authorJim Meyering <jim@meyering.net>
Sun, 21 Mar 2004 19:20:14 +0000 (19:20 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 21 Mar 2004 19:20:14 +0000 (19:20 +0000)
--files0-from=/dev/null

tests/du/files0-from

index d9924a937869ecbc0b94f48d9e690cf48b6f7fc1..d1fbe5b82a7fd27fb123fb0b5210772f3528889e 100755 (executable)
@@ -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"}],