1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-20 06:12:14 +02:00

Add tests when exit status is 2.

This commit is contained in:
Jim Meyering
2003-07-18 07:29:01 +00:00
parent 7a0ebf5a7b
commit c7e335bcda

View File

@@ -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.