mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2025-09-10 07:59:52 +02:00
tests: sort: expand multiple output testing
* tests/sort/sort.pl: Ensure duplicate output strings are supported.
This commit is contained in:
@@ -350,6 +350,11 @@ my @Tests =
|
||||
# Specifying two -o options should evoke a failure
|
||||
["o2", qw(-o x -o y), {EXIT=>2},
|
||||
{ERR=>"foo\n"}, {ERR_SUBST => 's/^$prog: .*/foo/'}],
|
||||
# Specifying duplicate -o options should NOT evoke a failure
|
||||
["o3", qw(-o x -o x), {IN=>""}, {OUT=>""}],
|
||||
# Note we do simple string comparisons for this
|
||||
["o4", qw(-o x -o ./x), {EXIT=>2},
|
||||
{ERR=>"foo\n"}, {ERR_SUBST => 's/^$prog: .*/foo/'}],
|
||||
|
||||
# Specifying incompatible options should evoke a failure.
|
||||
["incompat1", '-in', {EXIT=>2},
|
||||
|
||||
Reference in New Issue
Block a user