summaryrefslogtreecommitdiff
path: root/mysql-test/lib
diff options
context:
space:
mode:
authorunknown <kent@mysql.com>2005-07-06 22:21:35 +0200
committerunknown <kent@mysql.com>2005-07-06 22:21:35 +0200
commit0f06342304519f5b3c5e43045dca2a2b03ff1dc0 (patch)
tree8eaab48e4fee3007444f12d5add27866465eb699 /mysql-test/lib
parentb5081acd660fef8092d119287388f6f37e4c6e49 (diff)
downloadmariadb-git-0f06342304519f5b3c5e43045dca2a2b03ff1dc0.tar.gz
mtr_misc.pl:
Corrected appending of .exe to Windows executables Don't alter read only @_ in foreach loop mysql-test-run.pl: Improved cleanup of binlogs Use separate log file for second master Corrected Windows paths to executables mysql-test/mysql-test-run.pl: Improved cleanup of binlogs Use separate log file for second master Corrected Windows paths to executables mysql-test/lib/mtr_misc.pl: Corrected appending of .exe to Windows executables Don't alter read only @_ in foreach loop
Diffstat (limited to 'mysql-test/lib')
-rw-r--r--mysql-test/lib/mtr_misc.pl11
1 files changed, 6 insertions, 5 deletions
diff --git a/mysql-test/lib/mtr_misc.pl b/mysql-test/lib/mtr_misc.pl
index aba6f78c9de..c1aab340a16 100644
--- a/mysql-test/lib/mtr_misc.pl
+++ b/mysql-test/lib/mtr_misc.pl
@@ -83,18 +83,19 @@ sub mtr_script_exists (@) {
}
sub mtr_exe_exists (@) {
- foreach my $path ( @_ )
+ my @path= @_;
+ map {$_.= ".exe"} @path if $::glob_win32;
+ foreach my $path ( @path )
{
- $path.= ".exe" if $::opt_win32;
return $path if -x $path;
}
- if ( @_ == 1 )
+ if ( @path == 1 )
{
- mtr_error("Could not find $_[0]");
+ mtr_error("Could not find $path[0]");
}
else
{
- mtr_error("Could not find any of " . join(" ", @_));
+ mtr_error("Could not find any of " . join(" ", @path));
}
}