mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
mtr_misc.pl:
Fix mtr_exe_exists to work on win32 mysql-test/lib/mtr_misc.pl: Fix mtr_exe_exists to work on win32
This commit is contained in:
@@ -107,9 +107,16 @@ sub mtr_exe_exists (@) {
|
|||||||
my @path= @_;
|
my @path= @_;
|
||||||
map {$_.= ".exe"} @path if $::glob_win32;
|
map {$_.= ".exe"} @path if $::glob_win32;
|
||||||
foreach my $path ( @path )
|
foreach my $path ( @path )
|
||||||
|
{
|
||||||
|
if($::glob_win32)
|
||||||
|
{
|
||||||
|
return $path if -f $path;
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
return $path if -x $path;
|
return $path if -x $path;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if ( @path == 1 )
|
if ( @path == 1 )
|
||||||
{
|
{
|
||||||
mtr_error("Could not find $path[0]");
|
mtr_error("Could not find $path[0]");
|
||||||
|
Reference in New Issue
Block a user