Commit ca4340e6 authored by unknown's avatar unknown
Browse files

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
parent bc178429
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -107,9 +107,16 @@ sub mtr_exe_exists (@) {
  my @path= @_;
  map {$_.= ".exe"} @path if $::glob_win32;
  foreach my $path ( @path )
  {
    if($::glob_win32)
    {
      return $path if -f $path;
    }
    else
    {
      return $path if -x $path;
    }
  }
  if ( @path == 1 )
  {
    mtr_error("Could not find $path[0]");