Debian Codegraph @

util/gnu-patches/error_msg_uniq.diff

raw
1 Index: gnu/tests/uniq/uniq.pl
2 ===================================================================
3 --- gnu.orig/tests/uniq/uniq.pl
4 +++ gnu/tests/uniq/uniq.pl
5 @@ -178,12 +178,9 @@ my @Tests =
6 {IN=>"a\na\nb\nc\nc\n"}, {OUT=>"\na\na\n\nc\nc\n"}],
7 ['118', '--all-repeated=prepend', {IN=>"a\nb\n"}, {OUT=>""}],
8 ['119', '--all-repeated=badoption', {IN=>"a\n"}, {OUT=>""}, {EXIT=>1},
9 - {ERR=>"$prog: invalid argument 'badoption' for '--all-repeated'\n"
10 - . "Valid arguments are:\n"
11 - . " - 'none'\n"
12 - . " - 'prepend'\n"
13 - . " - 'separate'\n"
14 - . $try}],
15 + {ERR=>"error: invalid value 'badoption' for '--all-repeated[=<delimit-method>]'\n\n"
16 + . " [possible values: none, prepend, separate]\n\n"
17 + . "For more information, try '--help'.\n"}],
18 # Check that -d and -u suppress all output, as POSIX requires.
19 ['120', qw(-d -u), {IN=>"a\na\n\b"}, {OUT=>""}],
20 ['121', "-d -u -w$limits->{UINTMAX_OFLOW}", {IN=>"a\na\n\b"}, {OUT=>""}],
21 @@ -214,26 +211,22 @@ my @Tests =
22 ['140', '--group=both', {IN=>""}, {OUT=>""}],
23 # Grouping with other options - must fail
24 ['141', '--group -c', {IN=>""}, {OUT=>""}, {EXIT=>1},
25 - {ERR=>"$prog: --group is mutually exclusive with -c/-d/-D/-u\n" .
26 - "Try 'uniq --help' for more information.\n"}],
27 + {ERR=>"error: the argument '--group[=<group-method>]' cannot be used with '--count'\n\n" .
28 + "For more information, try '--help'.\n"}],
29 ['142', '--group -d', {IN=>""}, {OUT=>""}, {EXIT=>1},
30 - {ERR=>"$prog: --group is mutually exclusive with -c/-d/-D/-u\n" .
31 - "Try 'uniq --help' for more information.\n"}],
32 + {ERR=>"error: the argument '--group[=<group-method>]' cannot be used with '--repeated'\n\n" .
33 + "For more information, try '--help'.\n"}],
34 ['143', '--group -u', {IN=>""}, {OUT=>""}, {EXIT=>1},
35 - {ERR=>"$prog: --group is mutually exclusive with -c/-d/-D/-u\n" .
36 - "Try 'uniq --help' for more information.\n"}],
37 + {ERR=>"error: the argument '--group[=<group-method>]' cannot be used with '--unique'\n\n" .
38 + "For more information, try '--help'.\n"}],
39 ['144', '--group -D', {IN=>""}, {OUT=>""}, {EXIT=>1},
40 - {ERR=>"$prog: --group is mutually exclusive with -c/-d/-D/-u\n" .
41 - "Try 'uniq --help' for more information.\n"}],
42 + {ERR=>"error: the argument '--group[=<group-method>]' cannot be used with '--all-repeated[=<delimit-method>]'\n\n" .
43 + "For more information, try '--help'.\n"}],
44 # Grouping with badoption
45 ['145', '--group=badoption',{IN=>""}, {OUT=>""}, {EXIT=>1},
46 - {ERR=>"$prog: invalid argument 'badoption' for '--group'\n" .
47 - "Valid arguments are:\n" .
48 - " - 'prepend'\n" .
49 - " - 'append'\n" .
50 - " - 'separate'\n" .
51 - " - 'both'\n" .
52 - "Try '$prog --help' for more information.\n"}],
53 + {ERR=>"error: invalid value 'badoption' for '--group[=<group-method>]'\n\n" .
54 + " [possible values: separate, prepend, append, both]\n\n" .
55 + "For more information, try '--help'.\n"}],
56 );
57
58 # Locale related tests