1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MTR : improve detection of handles.exe on Windows.

Depending on version, "handle.exe -?" can output either "Handle v4.0"
or "Nthandle v4.1"
This commit is contained in:
Vladislav Vaintroub
2019-08-26 10:58:27 +00:00
parent 9de2e60d74
commit 202243d59e

View File

@ -32,8 +32,8 @@ if (IS_WINDOWS){
my $list= `handle.exe -? -accepteula 2>&1`;
foreach my $line (split('\n', $list))
{
$handle_exe= "$1.$2"
if ($line =~ /Handle v([0-9]*)\.([0-9]*)/);
$handle_exe= "$2.$3"
if ($line =~ /(Nth|H)andle v([0-9]*)\.([0-9]*)/);
}
if ($handle_exe){
print "Found handle.exe version $handle_exe\n";