mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-12-13 02:01:10 +08:00
PT-2493 - t/pt-pmp/pt-pmp.t fails on Debian distributions
- Specified locale in the test
This commit is contained in:
@@ -21,7 +21,7 @@ while ( my $file = readdir $dh ) {
|
||||
(my $outfile = $file) =~ s/\.in/.out/;
|
||||
ok(
|
||||
no_diff(
|
||||
"$trunk/bin/pt-pmp $sample/$file",
|
||||
"LOCALE=en_US.utf8 LANG=en_US.UTF-8 $trunk/bin/pt-pmp $sample/$file",
|
||||
"t/pt-pmp/samples/$outfile",
|
||||
),
|
||||
"$file"
|
||||
@@ -31,7 +31,7 @@ closedir $dh;
|
||||
|
||||
ok(
|
||||
no_diff(
|
||||
"$trunk/bin/pt-pmp -l 2 $sample/stacktrace003.in",
|
||||
"LOCALE=en_US.utf8 LANG=en_US.UTF-8 $trunk/bin/pt-pmp -l 2 $sample/stacktrace003.in",
|
||||
"t/pt-pmp/samples/stacktrace003-limit2.out",
|
||||
),
|
||||
"Limit 2 (stacktrace003-limit2.out)"
|
||||
@@ -39,7 +39,7 @@ ok(
|
||||
|
||||
ok(
|
||||
no_diff(
|
||||
"$trunk/bin/pt-pmp -d eu $sample/stacktrace006-eu.in",
|
||||
"LOCALE=en_US.utf8 LANG=en_US.UTF-8 $trunk/bin/pt-pmp -d eu $sample/stacktrace006-eu.in",
|
||||
"t/pt-pmp/samples/stacktrace006-eu-deu.out",
|
||||
),
|
||||
"eu-stack dump read correctly if option -d eu specified"
|
||||
@@ -47,7 +47,7 @@ ok(
|
||||
|
||||
ok(
|
||||
no_diff(
|
||||
"$trunk/bin/pt-pmp -d pteu $sample/stacktrace006-pteu.in",
|
||||
"LOCALE=en_US.utf8 LANG=en_US.UTF-8 $trunk/bin/pt-pmp -d pteu $sample/stacktrace006-pteu.in",
|
||||
"t/pt-pmp/samples/stacktrace006-pteu-dpteu.out",
|
||||
),
|
||||
"pt-eustack-resolver dump read correctly if option -d pteu specified"
|
||||
|
||||
Reference in New Issue
Block a user