From 5baf675b343491ede5afc68654ec6ec76abf88c6 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Thu, 17 Oct 2024 00:27:19 +0200 Subject: [PATCH] tsort.pl: adjust error message --- util/gnu-patches/tests_tsort.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 util/gnu-patches/tests_tsort.patch diff --git a/util/gnu-patches/tests_tsort.patch b/util/gnu-patches/tests_tsort.patch new file mode 100644 index 000000000..40c612c28 --- /dev/null +++ b/util/gnu-patches/tests_tsort.patch @@ -0,0 +1,17 @@ +diff --git a/tests/misc/tsort.pl b/tests/misc/tsort.pl +index 70bdc474c..4fd420a4e 100755 +--- a/tests/misc/tsort.pl ++++ b/tests/misc/tsort.pl +@@ -54,8 +54,10 @@ my @Tests = + + ['only-one', {IN => {f => ""}}, {IN => {g => ""}}, + {EXIT => 1}, +- {ERR => "tsort: extra operand 'g'\n" +- . "Try 'tsort --help' for more information.\n"}], ++ {ERR => "error: unexpected argument 'g' found\n\n" ++ . "Usage: tsort [OPTIONS] FILE\n\n" ++ . "For more information, try '--help'.\n" ++ }], + ); + + my $save_temps = $ENV{DEBUG};