diff options
author | Patrik Nyblom <[email protected]> | 2010-11-29 13:56:39 +0100 |
---|---|---|
committer | Patrik Nyblom <[email protected]> | 2010-11-29 13:56:39 +0100 |
commit | 9cee34946d1d06c358a9b7a260f57d05fbb08fd1 (patch) | |
tree | 82c2da777b39910a6ae33c5e61f9831b7c741ccb /lib/kernel/test | |
parent | 07d875f3255ccc1dea6e1189879e8f74f6f750b5 (diff) | |
parent | ea7a57a175e58a72231111a5bd612035379e8283 (diff) | |
download | otp-9cee34946d1d06c358a9b7a260f57d05fbb08fd1.tar.gz otp-9cee34946d1d06c358a9b7a260f57d05fbb08fd1.tar.bz2 otp-9cee34946d1d06c358a9b7a260f57d05fbb08fd1.zip |
Merge branch 'pan/gen_udp-connect-testcase/OTP-8860' into dev
* pan/gen_udp-connect-testcase/OTP-8860:
Teach gen_udp_SUITE:connect testcase about econnreset on Windows
Diffstat (limited to 'lib/kernel/test')
-rw-r--r-- | lib/kernel/test/gen_udp_SUITE.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/kernel/test/gen_udp_SUITE.erl b/lib/kernel/test/gen_udp_SUITE.erl index bbdfbd3cb0..2ff1d7210a 100644 --- a/lib/kernel/test/gen_udp_SUITE.erl +++ b/lib/kernel/test/gen_udp_SUITE.erl @@ -423,7 +423,11 @@ connect(Config) when is_list(Config) -> ?line ok = gen_udp:close(S1), ?line ok = gen_udp:connect(S2, Addr, P1), ?line ok = gen_udp:send(S2, <<16#deadbeef:32>>), - ?line {error,econnrefused} = gen_udp:recv(S2, 0, 5), + ?line ok = case gen_udp:recv(S2, 0, 5) of + {error,econnrefused} -> ok; + {error,econnreset} -> ok; + Other -> Other + end, ok. implicit_inet6(Config) when is_list(Config) -> |