summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-05-02 19:36:48 +0000
committerJim Meyering <jim@meyering.net>2003-05-02 19:36:48 +0000
commitd500b3f1e6a1a0394e814b1f9a1c7bb1d8834b3e (patch)
treec491dd181f7cbdc2513434c9294c773d83f93bfe /tests
parent63f2e7dba0827e1af701659eb3d3fe2ffc640c24 (diff)
downloadcoreutils-d500b3f1e6a1a0394e814b1f9a1c7bb1d8834b3e.tar.xz
make sure we fail when unable to open an input file
Diffstat (limited to 'tests')
-rwxr-xr-xtests/fmt/basic3
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};