summaryrefslogtreecommitdiff
path: root/tests/expr/basic
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-07-18 07:29:01 +0000
committerJim Meyering <jim@meyering.net>2003-07-18 07:29:01 +0000
commitc7e335bcdaef9ccc31589037c286f8d1f6101a5b (patch)
tree79bcfcd09ccfb996104e7a18a872550295f9ef2b /tests/expr/basic
parent7a0ebf5a7b283995026e28639cd54a6c3d0497be (diff)
downloadcoreutils-c7e335bcdaef9ccc31589037c286f8d1f6101a5b.tar.xz
Add tests when exit status is 2.
Diffstat (limited to 'tests/expr/basic')
-rwxr-xr-xtests/expr/basic6
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.