diff options
author | Jim Meyering <jim@meyering.net> | 2003-05-02 19:36:48 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-05-02 19:36:48 +0000 |
commit | d500b3f1e6a1a0394e814b1f9a1c7bb1d8834b3e (patch) | |
tree | c491dd181f7cbdc2513434c9294c773d83f93bfe /tests | |
parent | 63f2e7dba0827e1af701659eb3d3fe2ffc640c24 (diff) | |
download | coreutils-d500b3f1e6a1a0394e814b1f9a1c7bb1d8834b3e.tar.xz |
make sure we fail when unable to open an input file
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/fmt/basic | 3 |
1 files changed, 3 insertions, 0 deletions
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}; |