diff options
author | Jim Meyering <jim@meyering.net> | 2003-07-18 07:29:01 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-07-18 07:29:01 +0000 |
commit | c7e335bcdaef9ccc31589037c286f8d1f6101a5b (patch) | |
tree | 79bcfcd09ccfb996104e7a18a872550295f9ef2b /tests/expr/basic | |
parent | 7a0ebf5a7b283995026e28639cd54a6c3d0497be (diff) | |
download | coreutils-c7e335bcdaef9ccc31589037c286f8d1f6101a5b.tar.xz |
Add tests when exit status is 2.
Diffstat (limited to 'tests/expr/basic')
-rwxr-xr-x | tests/expr/basic | 6 |
1 files changed, 6 insertions, 0 deletions
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. |