mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01: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:
parent
bc1784298f
commit
ca4340e68b
1 changed files with 8 additions and 1 deletions
|
@ -108,7 +108,14 @@ sub mtr_exe_exists (@) {
|
|||
map {$_.= ".exe"} @path if $::glob_win32;
|
||||
foreach my $path ( @path )
|
||||
{
|
||||
return $path if -x $path;
|
||||
if($::glob_win32)
|
||||
{
|
||||
return $path if -f $path;
|
||||
}
|
||||
else
|
||||
{
|
||||
return $path if -x $path;
|
||||
}
|
||||
}
|
||||
if ( @path == 1 )
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue