Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test fails on Windows 10 + WSL + Debian 10 #94

Open
plicease opened this issue Dec 6, 2019 · 1 comment
Open

Test fails on Windows 10 + WSL + Debian 10 #94

plicease opened this issue Dec 6, 2019 · 1 comment

Comments

@plicease
Copy link

plicease commented Dec 6, 2019

% prove -bvm t/11_net_empty_port.t
t/11_net_empty_port.t ..
ok 1 - bind to 127.0.0.1
# Subtest: v4
    ok 1 - found an empty port on 127.0.0.1
    ok 2 - port 56054 on 127.0.0.1 is closed
    ok 3 - port 56054 on 127.0.0.1 is now open
    1..3
ok 2 - v4
# Subtest: v6
    # found an empty IPv6 port
    ok 1 - found an empty port on ::1
    ok 2 - port 56065 on ::1 is closed
    ok 3 - port 56065 on ::1 is now open
    1..3
ok 3 - v6
# Subtest: return value
    ok 1
    1..1
ok 4 - return value
ok 5 - Non hashref arg to empty_port
ok 6 - Specified low port to empty_port
ok 7 - Specified high port to empty_port
ok 8 - Specified non-numeric port to empty_port
ok 9 - Specified non-numeric port and udp proto to empty_port
ok 10 - 4 args to wait_port (backwards compat)
ok 11 - 3 args to wait_port
ok 12 - No args to wait_port is fatal
ok 13 - No max_wait to wait_port
ok 14 - No args to check_port is fatal
ok 15 - 2 args to check_port
# Subtest: udp-wait-port
    not ok 1 - port is down
    #   Failed test 'port is down'
    #   at t/11_net_empty_port.t line 88.
    ok 2 - port is up
    1..2
    # Looks like you failed 1 test of 2.
not ok 16 - udp-wait-port
#   Failed test 'udp-wait-port'
#   at t/11_net_empty_port.t line 96.
1..16
# Looks like you failed 1 test of 16.
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/16 subtests

Test Summary Report
-------------------
t/11_net_empty_port.t (Wstat: 256 Tests: 16 Failed: 1)
  Failed test:  16
  Non-zero exit status: 1
Files=1, Tests=16, 18 wallclock secs ( 0.00 usr  0.03 sys +  0.04 cusr  0.07 csys =  0.14 CPU)
@syohex
Copy link
Collaborator

syohex commented Mar 20, 2020

https://github.com/tokuhirom/Test-TCP/blob/2.22/lib/Net/EmptyPort.pm#L116

This recv sets EAGAIN to errno against non-listened UDP port on WSL. However expected errno is ECONREFUSED(other platforms set it ECONREFUSED). I suppose that it seems WSL issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants