summaryrefslogtreecommitdiff
path: root/mysql-test/lib/My/Platform.pm
diff options
context:
space:
mode:
authorunknown <msvensson@pilot.mysql.com>2008-04-22 21:55:09 +0200
committerunknown <msvensson@pilot.mysql.com>2008-04-22 21:55:09 +0200
commit2d226292ff67a4d6c769c61a2af63dd3c26e4734 (patch)
tree4a700a536640a007f46acbdb644280969f82fe20 /mysql-test/lib/My/Platform.pm
parent0a4ad7f390d2bb757da8b25f76f68c25a088fd87 (diff)
downloadmariadb-git-2d226292ff67a4d6c769c61a2af63dd3c26e4734.tar.gz
Always return 0 inidcating that socket path would not be truncated when
running on windows. Apparently Cygwin tries to emulate UNIX Socket and thus fails to create one.
Diffstat (limited to 'mysql-test/lib/My/Platform.pm')
-rw-r--r--mysql-test/lib/My/Platform.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/mysql-test/lib/My/Platform.pm b/mysql-test/lib/My/Platform.pm
index bcd2401423d..b934b08f522 100644
--- a/mysql-test/lib/My/Platform.pm
+++ b/mysql-test/lib/My/Platform.pm
@@ -96,6 +96,8 @@ sub check_socket_path_length {
my ($path)= @_;
my $truncated= 0;
+ return 0 if IS_WINDOWS;
+
require IO::Socket::UNIX;
my $sock = new IO::Socket::UNIX