File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 39
39
# platform independent way to add trailing path separator
40
40
my $sockDir = catfile($instDir , " sock" , " " );
41
41
# catfile convert '\' to '/' on Windows, but we want to keep it as '\' since golang on Windows prefers '\'
42
- $sockDir =~ s /\/ / \\ / g if $Config {osname } eq " msys" ;
42
+ $sockDir =~ s /\/ / \\\\ / g if ( $Config {osname } eq " cygwin " || $Config { osname } eq " msys" || $Config { osname } eq " MSWin32 " ) ;
43
43
44
44
# If $instance is a filename, add our portForwards to it to enable testing
45
45
if (-f $instance ) {
127
127
128
128
my $remote = JoinHostPort($test {guest_ip },$test {guest_port });
129
129
my $local = $test {host_socket } eq " " ? JoinHostPort($test {host_ip },$test {host_port }) : $test {host_socket };
130
+ $local =~ s /\\ / \\\\ / g if ($Config {osname } eq " cygwin" || $Config {osname } eq " msys" || $Config {osname } eq " MSWin32" );
130
131
if ($test {mode } eq " ignore" ) {
131
132
$test {log_msg } = " Not forwarding TCP $remote " ;
132
133
}
You can’t perform that action at this time.
0 commit comments