Debian Codegraph @

util/gnu-patches/tests_sort_merge.pl.patch

raw
1 Index: gnu/tests/sort/sort-merge.pl
2 ===================================================================
3 --- gnu.orig/tests/sort/sort-merge.pl
4 +++ gnu/tests/sort/sort-merge.pl
5 @@ -43,22 +43,22 @@ my @Tests =
6 # check validation of --batch-size option
7 ['nmerge-0', "-m --batch-size=0", @inputs,
8 {ERR=>"$prog: invalid --batch-size argument '0'\n".
9 - "$prog: minimum --batch-size argument is '2'\n"}, {EXIT=>2}],
10 + "$prog: minimum --batch-size argument is '2'\nTry 'sort --help' for more information.\n"}, {EXIT=>2}],
11
12 ['nmerge-1', "-m --batch-size=1", @inputs,
13 {ERR=>"$prog: invalid --batch-size argument '1'\n".
14 - "$prog: minimum --batch-size argument is '2'\n"}, {EXIT=>2}],
15 + "$prog: minimum --batch-size argument is '2'\nTry 'sort --help' for more information.\n"}, {EXIT=>2}],
16
17 ['nmerge-neg', "-m --batch-size=-1", @inputs,
18 - {ERR=>"$prog: invalid --batch-size argument '-1'\n"}, {EXIT=>2}],
19 + {ERR=>"$prog: invalid --batch-size argument '-1'\nTry 'sort --help' for more information.\n"}, {EXIT=>2}],
20
21 ['nmerge-nan', "-m --batch-size=a", @inputs,
22 - {ERR=>"$prog: invalid --batch-size argument 'a'\n"}, {EXIT=>2}],
23 + {ERR=>"$prog: invalid --batch-size argument 'a'\nTry 'sort --help' for more information.\n"}, {EXIT=>2}],
24
25 ['nmerge-big', "-m --batch-size=$bigint", @inputs,
26 {ERR_SUBST=>'s/(current rlimit is) \d+/$1/'},
27 {ERR=>"$prog: --batch-size argument '$bigint' too large\n".
28 - "$prog: maximum --batch-size argument with current rlimit is\n"},
29 + "$prog: maximum --batch-size argument with current rlimit is\nTry 'sort --help' for more information.\n"},
30 {EXIT=>2}],
31
32 # This should work since nmerge >= the number of input files