Skip to content

Commit a8ad6d9

Browse files
committed
factor: adapt message in patch to clap change
1 parent def66f3 commit a8ad6d9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

util/gnu-patches/tests_factor_factor.pl.patch

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
diff --git a/tests/factor/factor.pl b/tests/factor/factor.pl
2-
index 6e612e418..f19c06ca0 100755
2+
index b1406c266..3d97cd6a5 100755
33
--- a/tests/factor/factor.pl
44
+++ b/tests/factor/factor.pl
5-
@@ -61,12 +61,13 @@ my @Tests =
5+
@@ -61,12 +61,14 @@ my @Tests =
66
# Map newer glibc diagnostic to expected.
77
# Also map OpenBSD 5.1's "unknown option" to expected "invalid option".
88
{ERR_SUBST => q!s/'1'/1/;s/unknown/invalid/!},
99
- {ERR => "$prog: invalid option -- 1\n"
1010
- . "Try '$prog --help' for more information.\n"},
1111
+ {ERR => "error: unexpected argument '-1' found\n\n"
1212
+ . " tip: to pass '-1' as a value, use '-- -1'\n\n"
13-
+ . "Usage: factor [OPTION]... [NUMBER]...\n"},
13+
+ . "Usage: factor [OPTION]... [NUMBER]...\n\n"
14+
+ . "For more information, try '--help'.\n"},
1415
{EXIT => 1}],
1516
['cont', 'a 4',
1617
{OUT => "4: 2 2\n"},

0 commit comments

Comments
 (0)