diff options
author | Jim Meyering <jim@meyering.net> | 2003-05-02 19:52:34 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-05-02 19:52:34 +0000 |
commit | 1e97469e5ab69bc4f83274d8c5277eca7141becd (patch) | |
tree | b4e45dd57eab79500e113deb135427a8864ef09d /tests/fmt/basic | |
parent | 52c96899dc119c1ee240ff4e5394fb32cc9c7ef2 (diff) | |
download | coreutils-1e97469e5ab69bc4f83274d8c5277eca7141becd.tar.xz |
Give a proper diagnostic for e.g., `fmt -c -72'.
Diffstat (limited to 'tests/fmt/basic')
-rwxr-xr-x | tests/fmt/basic | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/fmt/basic b/tests/fmt/basic index 6429e00d8..b335ab9ca 100755 --- a/tests/fmt/basic +++ b/tests/fmt/basic @@ -34,6 +34,10 @@ my @Tests = ['no-file', 'no-such-file', {ERR => "fmt: cannot open `no-such-file' for reading:" . " No such file or directory\n"}, {EXIT => 1}], + ['obs-1', '-c -72', + {ERR => "fmt: invalid option -- 7; -NUMBER is recognized only when it" + . " is the first\noption; use -w N instead\n" + . "Try `fmt --help' for more information.\n" }, {EXIT => 1}], ); my $save_temps = $ENV{DEBUG}; |