From 307bdd94415ffa8ef755a3d071b167a8eae49218 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Thu, 29 Oct 2026 21:30:39 +0100 Subject: [PATCH] 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 --- tests/sort/sort.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/sort/sort.pl b/tests/sort/sort.pl index 5bed12f5c..373c56ed2 100755 --- a/tests/sort/sort.pl +++ b/tests/sort/sort.pl @@ -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'",