]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Add tests when exit status is 2.
authorJim Meyering <jim@meyering.net>
Fri, 18 Jul 2003 07:29:01 +0000 (07:29 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 18 Jul 2003 07:29:01 +0000 (07:29 +0000)
tests/expr/basic

index b58b78e4cdeb6ce9a2ec7d1ef6aba7ab34e3b87e..cb9383cae25e8241e8cfcdcc61bdc77548169d1b 100755 (executable)
@@ -45,6 +45,12 @@ my @Tests =
      # This erroneously succeeded and output `3' before 2.0.12.
      ['fail-a', '3 + -', {ERR => "$prog: non-numeric argument\n"},
       {EXIT => 3}],
+
+     ['fail-b', '9 9', {ERR => "$prog: syntax error\n"},
+      {EXIT => 2}],
+     ['fail-c', {ERR => "$prog: too few arguments\n"
+                . "Try `$prog --help' for more information.\n"},
+      {EXIT => 2}],
     );
 
 # Append a newline to end of each expected `OUT' string.