diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-03 00:03:57 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-03 00:03:57 +0000 |
commit | 8c454fe9399ae52c893e61b6185e0d70523c3bc3 (patch) | |
tree | 468340ef03caefdde7034a0f733b8c7e0c59cbfe /tests | |
parent | c5c14638098256dcdad1c205299c49812a91e0aa (diff) | |
download | coreutils-8c454fe9399ae52c893e61b6185e0d70523c3bc3.tar.xz |
(wide-1, wide-2, bad-suffix): Adjust to today's fmt.c fixes.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/fmt/basic | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/fmt/basic b/tests/fmt/basic index bbc7db2e7..991f01d69 100755 --- a/tests/fmt/basic +++ b/tests/fmt/basic @@ -27,10 +27,12 @@ my @Tests = ['8-bit-pfx', qw (-p 'ç'), {IN=> "ça\nçb\n"}, {OUT=>"ça b\n"}], - ['wide-1', '-32768', {IN=> "a\n"}, {OUT=>"a\n"}], - ['wide-2', '-2147483647', {IN=> "a\n"}, {OUT=>"a\n"}], + ['wide-1', '-w 32768', + {ERR => "fmt: invalid width: `32768'\n"}, {EXIT => 1}], + ['wide-2', '-w 2147483647', + {ERR => "fmt: invalid width: `2147483647'\n"}, {EXIT => 1}], ['bad-suffix', '-72x', {IN=> ''}, - {ERR => "fmt: invalid width option: `-72x'\n"}, {EXIT => 1}], + {ERR => "fmt: invalid width: `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}], |