Skip to content

Commit

Permalink
Make an IO::Socket::INET test platform independent
Browse files Browse the repository at this point in the history
Using ports 0-999 requires root on OpenBSD. Use a random port instead.
  • Loading branch information
Kaiepi committed Jul 31, 2019
1 parent 9201db6 commit 397425b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion S32-io/IO-Socket-INET.t
Expand Up @@ -311,7 +311,7 @@ if $*DISTRO.is-win or # test for WSL below
}
else {
# MoarVM #234
eval-lives-ok 'for ^2000 { IO::Socket::INET.new( :port($_), :host("127.0.0.1") ); CATCH {next}; next }',
eval-lives-ok 'for ^2000 { IO::Socket::INET.new( :0port, :host<127.0.0.1> ); CATCH {next}; next }',
'Surviving without SEGV due to incorrect socket connect/close handling';
}

Expand Down

0 comments on commit 397425b

Please sign in to comment.