summaryrefslogtreecommitdiff
path: root/tests/fmt/basic
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-05-02 19:20:18 +0000
committerJim Meyering <jim@meyering.net>2003-05-02 19:20:18 +0000
commit63f2e7dba0827e1af701659eb3d3fe2ffc640c24 (patch)
tree76acb7b1757da395accd0ddc85b1a21caf4fed94 /tests/fmt/basic
parent7747a57abcc9f2863018b7ff5acbd2d451ee0cfe (diff)
downloadcoreutils-63f2e7dba0827e1af701659eb3d3fe2ffc640c24.tar.xz
make sure -72x elicits an error
Diffstat (limited to 'tests/fmt/basic')
-rwxr-xr-xtests/fmt/basic2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/fmt/basic b/tests/fmt/basic
index fb1c060b9..f138202ef 100755
--- a/tests/fmt/basic
+++ b/tests/fmt/basic
@@ -29,6 +29,8 @@ my @Tests =
{OUT=>"ça b\n"}],
['wide-1', '-32768', {IN=> "a\n"}, {OUT=>"a\n"}],
['wide-2', '-2147483647', {IN=> "a\n"}, {OUT=>"a\n"}],
+ ['bad-suffix', '-72x', {IN=> ''},
+ {ERR => "fmt: invalid width option: `-72x'\n"}, {EXIT => 1}],
);
my $save_temps = $ENV{DEBUG};