Skip to content

Commit 9390d06

Browse files
committed
Change directory to $*TMPDIR before UNIX socket tests
Fixes #718
1 parent 2b556e0 commit 9390d06

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

S32-io/IO-Socket-INET-UNIX.t

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ plan 8;
66
if $*DISTRO.is-win {
77
skip-rest 'UNIX socket support on Windows NYI';
88
} else {
9+
chdir $*TMPDIR;
10+
911
my IO::Socket::INET:_ $server;
1012
my IO::Socket::INET:_ $client;
1113
my IO::Socket::INET:_ $accepted;
12-
my Str:D $host = $*TMPDIR.add("test-$*PID.sock").Str;
14+
my Str:D $host = "./test-$*PID.sock";
1315
my Str:D $sent = 'Hello, world!';
1416
my Str:_ $received;
1517
LEAVE $host.IO.unlink if $host.IO.e;

0 commit comments

Comments
 (0)