tests: sort: ensure sort rejects -o combined with --debug

Reported at https://github.com/uutils/coreutils/issues/15998

* tests/sort/sort.pl: Add test case.

Link: https://github.com/coreutils/coreutils/pull/433
This commit is contained in:
Sylvestre Ledru authored and Pádraig Brady committed 2026-11-07 12:35:10 +00:00
1 parent 566aeee281
commit 307bdd9441
1 file changed
+2
+2
View File
@@ -377,6 +377,8 @@ my @Tests =
{ERR=>"$prog: options '-cC' are incompatible\n"}],
["incompat7", qw(--sort=random -n), {EXIT=>2},
{ERR=>"$prog: options '-nR' are incompatible\n"}],
["incompat8", qw(-o /dev/null --debug), {EXIT=>2},
{ERR=>"$prog: options '-o --debug' are incompatible\n"}],
# -t '\0' is accepted, as of coreutils-5.0.91
['nul-tab', "-k2,2 -t '\\0'",