lynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/39060?usp=email )
Change subject: PCU_Tests_SNS: SNS Add: handle NS_Alive while waiting for SNS_Ack ......................................................................
PCU_Tests_SNS: SNS Add: handle NS_Alive while waiting for SNS_Ack
Similiar to 61ccea9ecadc ("PCU_Tests_SNS: del/change weight: don't fail on NS"), the SNS Add procedure might have to handle a NS Alive PDU in the receiving queue while waiting for a SNS ACK.
Related: OS#6611 Change-Id: I10646d9acfe280ddfb8852a4d5c37882aae99874 --- M pcu/PCU_Tests_SNS.ttcn 1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/60/39060/1
diff --git a/pcu/PCU_Tests_SNS.ttcn b/pcu/PCU_Tests_SNS.ttcn index 263e205..07f147c 100644 --- a/pcu/PCU_Tests_SNS.ttcn +++ b/pcu/PCU_Tests_SNS.ttcn @@ -303,7 +303,9 @@ /* create another NS codec port on the tester side */ f_init_ns_codec(mp_nsconfig, 2);
+ g_handle_rx_alive := true; f_outgoing_sns_add(idx_add := 2, w_sig := 0, w_user := 1, idx := 0); + g_handle_rx_alive := false;
/* wait for one ALIVE cycle, then ACK any further ALIVE in the background */ as_rx_alive_tx_ack(oneshot := true, idx := 2); @@ -316,6 +318,8 @@
/* Test adding an already present IP endpoint at runtime */ testcase TC_sns_add_nack() runs on RAW_Test_CT { + g_handle_rx_alive := true; + f_sns_bringup_1c1u();
f_outgoing_sns_add(idx_add := 0, w_sig := 0, w_user := 1, idx := 0, cause := NS_CAUSE_PROTOCOL_ERROR_UNSPECIFIED);