i18n patch: avoid test failure for uniq's 145-mb test case

* tests.misc/uniq.pl: For comparing the stderr message with the
expected result, all multibyte-typical ‘...’ must be replaced
by '...'.  Add a ERR_SUBST expression to do that.
This commit is contained in:
Bernhard Voelker 2014-01-04 22:52:24 +01:00 committed by Ondřej Vašík
parent ff51f0cc5e
commit e241867dd1

View File

@ -4605,8 +4605,16 @@ diff -urNp coreutils-8.22-orig/tests/misc/uniq.pl coreutils-8.22/tests/misc/uniq
+ push @new_t, $sub; + push @new_t, $sub;
+ push @$t, $sub; + push @$t, $sub;
+ } + }
+ next if ($test_name =~ "schar" or $test_name =~ "^obs-plus" + # In test #145, replace the each ... by '...'.
+ or $test_name =~ "119" or $test_name =~ "145"); + if ($test_name =~ "145")
+ {
+ my $sub = { ERR_SUBST => "s/([^]+)/'\$1'/g"};
+ push @new_t, $sub;
+ push @$t, $sub;
+ }
+ next if ( $test_name =~ "schar"
+ or $test_name =~ "^obs-plus"
+ or $test_name =~ "119");
+ push @new, ["$test_name-mb", @new_t, {ENV => "LC_ALL=$mb_locale"}]; + push @new, ["$test_name-mb", @new_t, {ENV => "LC_ALL=$mb_locale"}];
+ } + }
+ push @Tests, @new; + push @Tests, @new;