diff options
author | Raimo Niskanen <[email protected]> | 2010-08-31 16:37:32 +0200 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2010-08-31 16:37:32 +0200 |
commit | 8a0e1429ef2099378cdab0288224207d4d64332d (patch) | |
tree | 0f99133bbc1aba1b4beff2272f1fb91db7c101b0 | |
parent | eaf1d4c5850ee84427d70e3df42fe777d82249c2 (diff) | |
download | otp-8a0e1429ef2099378cdab0288224207d4d64332d.tar.gz otp-8a0e1429ef2099378cdab0288224207d4d64332d.tar.bz2 otp-8a0e1429ef2099378cdab0288224207d4d64332d.zip |
Fix xfer_active close expection for Solaris behaviour
-rw-r--r-- | lib/kernel/test/gen_sctp_SUITE.erl | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/lib/kernel/test/gen_sctp_SUITE.erl b/lib/kernel/test/gen_sctp_SUITE.erl index 72f1436415..ceda5b0af6 100644 --- a/lib/kernel/test/gen_sctp_SUITE.erl +++ b/lib/kernel/test/gen_sctp_SUITE.erl @@ -222,12 +222,17 @@ xfer_active(Config) when is_list(Config) -> end, ?line ok = gen_sctp:close(Sb), ?line receive - {sctp,Sa,Loopback,Pb, - {[], - #sctp_assoc_change{state=comm_lost, - assoc_id=SaAssocId}}} -> ok - after 17 -> ok %% On Solaris this does not arrive - end, + {sctp,Sa,Loopback,Pb, + {[], + #sctp_assoc_change{state=comm_lost, + assoc_id=SaAssocId}}} -> ok + after Timeout -> + ?line test_server:fail({unexpected,flush()}) + end, + ?line receive + {sctp_error,Sa,enotconn} -> ok % Solaris + after 17 -> ok %% Only happens on Solaris + end, ?line ok = gen_sctp:close(Sa), %% ?line receive |