]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
make sure we fail when unable to open an input file
authorJim Meyering <jim@meyering.net>
Fri, 2 May 2003 19:36:48 +0000 (19:36 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 2 May 2003 19:36:48 +0000 (19:36 +0000)
tests/fmt/basic

index f138202efff618b53c2242fdbf3b6230302b8050..6429e00d87b25a18a03f0537b718b040335869d3 100755 (executable)
@@ -31,6 +31,9 @@ my @Tests =
      ['wide-2', '-2147483647', {IN=> "a\n"}, {OUT=>"a\n"}],
      ['bad-suffix', '-72x',    {IN=> ''},
       {ERR => "fmt: invalid width option: `-72x'\n"}, {EXIT => 1}],
+     ['no-file', 'no-such-file',
+      {ERR => "fmt: cannot open `no-such-file' for reading:"
+       . " No such file or directory\n"}, {EXIT => 1}],
     );
 
 my $save_temps = $ENV{DEBUG};