Debian Codegraph @

util/gnu-patches/tests_factor_factor.pl.patch

raw
1 Index: gnu/tests/factor/factor.pl
2 ===================================================================
3 --- gnu.orig/tests/factor/factor.pl
4 +++ gnu/tests/factor/factor.pl
5 @@ -61,8 +61,10 @@ my @Tests =
6 # Map newer glibc diagnostic to expected.
7 # Also map OpenBSD 5.1's "unknown option" to expected "invalid option".
8 {ERR_SUBST => q!s/'1'/1/;s/unknown/invalid/!},
9 - {ERR => "$prog: invalid option -- 1\n"
10 - . "Try '$prog --help' for more information.\n"},
11 + {ERR => "error: unexpected argument '-1' found\n\n"
12 + . " tip: to pass '-1' as a value, use '-- -1'\n\n"
13 + . "Usage: factor [OPTION]... [NUMBER]...\n\n"
14 + . "For more information, try '--help'.\n"},
15 {EXIT => 1}],
16 ['cont', 'a 4',
17 {OUT => "4: 2 2\n"},