Commit 7a6c62c4 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Bug#42427 : MTR v2 fails with "can't write to /tmp/mysql-test-ports.sem" on Windows

- /tmp directory is not guaranteed to exist on Windows. 
Use the value of environment variable TEMP here
parent 2515ce79
...@@ -28,7 +28,17 @@ sub msg { ...@@ -28,7 +28,17 @@ sub msg {
# print "### unique($$) - ", join(" ", @_), "\n"; # print "### unique($$) - ", join(" ", @_), "\n";
} }
my $file= "/tmp/mysql-test-ports"; my $file;
if(!IS_WINDOWS)
{
$file= "/tmp/mysql-test-ports";
}
else
{
$file= $ENV{'TEMP'}."/mysql-test-ports";
}
my %mtr_unique_ids; my %mtr_unique_ids;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment