mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
tests: join: check -o fields after the file operands
* tests/join/join.pl (o-after-files-1, o-after-files-2): New tests, ensuring a separate -o field is only taken while a file operand still follows it. https://github.com/uutils/coreutils/pull/16378 Link: https://github.com/coreutils/coreutils/pull/465
This commit is contained in:
1 parent
d66f7dc609
commit
62b40c901d
1 file changed
+7
@@ -400,6 +400,13 @@ push @Tests,
|
||||
['o-sep-space-enoent', '-o 1.1 1.2 2.2 f1', {EXIT=>1},
|
||||
{ERR=>"$prog: 2.2: $limits->{ENOENT}\n"}];
|
||||
|
||||
# A separate -o field is only taken while a file operand still follows.
|
||||
push @Tests,
|
||||
['o-after-files-1', 'f1 f2 -o 1.1 1.2', {EXIT=>1},
|
||||
{ERR=>"$prog: extra operand '1.2'\n$try"}],
|
||||
['o-after-files-2', 'f1 f2 -o 1.1 2.2 1.2', {EXIT=>1},
|
||||
{ERR=>"$prog: extra operand '2.2'\n$try"}];
|
||||
|
||||
if ($mb_locale ne 'C')
|
||||
{
|
||||
# Duplicate each test vector, appending "-mb" to the test name and
|
||||
|
||||
Reference in new issue
Block a user