]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(wide-1, wide-2, bad-suffix): Adjust to today's fmt.c fixes.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 3 Aug 2004 00:03:57 +0000 (00:03 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 3 Aug 2004 00:03:57 +0000 (00:03 +0000)
tests/fmt/basic

index bbc7db2e713ba2642234054ca2431ef40bee20c5..991f01d690b8e6f34515218227201b844484e125 100755 (executable)
@@ -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}],