From c7e335bcdaef9ccc31589037c286f8d1f6101a5b Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 18 Jul 2003 07:29:01 +0000 Subject: Add tests when exit status is 2. --- tests/expr/basic | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/expr/basic') diff --git a/tests/expr/basic b/tests/expr/basic index b58b78e4c..cb9383cae 100755 --- a/tests/expr/basic +++ b/tests/expr/basic @@ -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. -- cgit v1.2.3-70-g09d2