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 3939# platform independent way to add trailing path separator
4040my $sockDir = catfile($instDir , " sock" , " " );
4141# 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 " ) ;
4343
4444# If $instance is a filename, add our portForwards to it to enable testing
4545if (-f $instance ) {
127127
128128 my $remote = JoinHostPort($test {guest_ip },$test {guest_port });
129129 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" );
130131 if ($test {mode } eq " ignore" ) {
131132 $test {log_msg } = " Not forwarding TCP $remote " ;
132133 }
You can’t perform that action at this time.
0 commit comments