This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
laforge gerrit-no-reply at lists.osmocom.orglaforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20001 ) Change subject: PCU_Tests_NS: allow an UNBLOCK message to arrive before ALIVE ...................................................................... PCU_Tests_NS: allow an UNBLOCK message to arrive before ALIVE The ALIVE PDU does not have to be sent before an UNBLOCK message. Ignore UNBLOCK messages in cases a single ALIVE is expected. According to TS 48.016 v5.2.0, 7.4: "Upon successful completion of an NS-VC reset procedure, a BSS (or SGSN) shall start timer Tns-test, then [..]" The ALIVE should arive Tns-test after the reset procedure (typ. 1s-60s). Change-Id: I11d77b7477981998082967e5123b61636af2b980 --- M pcu/PCU_Tests_NS.ttcn 1 file changed, 13 insertions(+), 11 deletions(-) Approvals: Jenkins Builder: Verified laforge: Looks good to me, approved diff --git a/pcu/PCU_Tests_NS.ttcn b/pcu/PCU_Tests_NS.ttcn index ce2560f..f953be4 100644 --- a/pcu/PCU_Tests_NS.ttcn +++ b/pcu/PCU_Tests_NS.ttcn @@ -109,9 +109,11 @@ /* Expect inbound NS-RESET procedure */ as_rx_ns_reset_ack(oneshot := true); + alt { /* wait for one ALIVE cycle, then ACK any further ALIVE in the background */ - as_rx_alive_tx_ack(oneshot := true); - setverdict(pass); + [] NSCP[0].receive(t_NS_RecvFrom(t_NS_ALIVE)) { setverdict(pass); }; + [] NSCP[0].receive(t_NS_RecvFrom(t_NS_UNBLOCK)) { repeat; } + } } /* Test for NS-RESET after NS-ALIVE timeout */ @@ -123,12 +125,16 @@ as_rx_ns_reset_ack(oneshot := true); /* wait for at least one NS-ALIVE */ - NSCP[0].receive(t_NS_RecvFrom(t_NS_ALIVE)); + alt { + [] as_rx_alive_tx_ack(oneshot := true) { }; + [] NSCP[0].receive(t_NS_RecvFrom(t_NS_UNBLOCK)) { repeat; } + } /* wait for NS-RESET to re-appear, ignoring any NS-ALIVE until then */ alt { [] as_rx_ns_reset_ack(oneshot := true) { setverdict(pass); } [] NSCP[0].receive(t_NS_RecvFrom(t_NS_ALIVE)) { repeat; } + [] NSCP[0].receive(t_NS_RecvFrom(t_NS_UNBLOCK)) { repeat; } } } @@ -140,8 +146,7 @@ /* Expect inbound NS-RESET procedure */ as_rx_ns_reset_ack(oneshot := true); - /* wait for one ALIVE cycle, then ACK any further ALIVE in the background */ - as_rx_alive_tx_ack(oneshot := true); + /* keep it alive */ activate(as_rx_alive_tx_ack()); as_rx_ns_unblock_ack(oneshot := true); @@ -156,8 +161,7 @@ /* Expect inbound NS-RESET procedure */ as_rx_ns_reset_ack(oneshot := true); - /* wait for one ALIVE cycle, then ACK any further ALIVE in the background */ - as_rx_alive_tx_ack(oneshot := true); + /* keep it alive */ activate(as_rx_alive_tx_ack()); /* wait for first NS-UNBLOCK, don't respond */ @@ -176,8 +180,7 @@ /* Expect inbound NS-RESET procedure */ as_rx_ns_reset_ack(oneshot := true); - /* wait for one ALIVE cycle, then ACK any further ALIVE in the background */ - as_rx_alive_tx_ack(oneshot := true); + /* keep it alive */ activate(as_rx_alive_tx_ack()); as_rx_ns_unblock_ack(oneshot := true); @@ -203,8 +206,7 @@ /* Expect inbound NS-RESET procedure */ as_rx_ns_reset_ack(oneshot := true); - /* wait for one ALIVE cycle, then ACK any further ALIVE in the background */ - as_rx_alive_tx_ack(oneshot := true); + /* keep it alive */ activate(as_rx_alive_tx_ack()); as_rx_ns_unblock_ack(oneshot := true); -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20001 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I11d77b7477981998082967e5123b61636af2b980 Gerrit-Change-Number: 20001 Gerrit-PatchSet: 2 Gerrit-Owner: lynxis lazus <lynxis at fe80.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge at osmocom.org> Gerrit-MessageType: merged -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200907/d00ed790/attachment.htm>