From d500b3f1e6a1a0394e814b1f9a1c7bb1d8834b3e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 2 May 2003 19:36:48 +0000 Subject: make sure we fail when unable to open an input file --- tests/fmt/basic | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/fmt') diff --git a/tests/fmt/basic b/tests/fmt/basic index f138202ef..6429e00d8 100755 --- a/tests/fmt/basic +++ b/tests/fmt/basic @@ -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}; -- cgit v1.2.3-70-g09d2