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:
parent
ff51f0cc5e
commit
e241867dd1
@ -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 @$t, $sub;
|
||||
+ }
|
||||
+ next if ($test_name =~ "schar" or $test_name =~ "^obs-plus"
|
||||
+ or $test_name =~ "119" or $test_name =~ "145");
|
||||
+ # In test #145, replace the each ‘...’ by '...'.
|
||||
+ 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 @Tests, @new;
|
||||
|
Loading…
Reference in New Issue
Block a user