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

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
This commit is contained in:
Vladislav Vaintroub
2009-02-09 13:10:34 +01:00
parent 2515ce79e8
commit 7a6c62c4ff

View File

@ -28,7 +28,17 @@ sub msg {
# 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;