Change in osmo-ttcn3-hacks[master]: pcu: SNS: TC_sns_so_bvc_reset_unknown_bvci: use g_handle_rx_alive

lynxis lazus gerrit-no-reply at lists.osmocom.org
Tue Apr 6 14:26:00 UTC 2021


lynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/23656 )


Change subject: pcu: SNS: TC_sns_so_bvc_reset_unknown_bvci: use g_handle_rx_alive
......................................................................

pcu: SNS: TC_sns_so_bvc_reset_unknown_bvci: use g_handle_rx_alive

The g_handle_rx_alive allows ignoring any ALIVE PDUs when
using f_exp_ns().
This improves the stability as the ALIVE and BVC-RESET
can come in any order.

Change-Id: I3b4ab4093b3e5bee7e32fdf6c1de3f692b13a35f
---
M pcu/PCU_Tests_SNS.ttcn
1 file changed, 1 insertion(+), 4 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/56/23656/1

diff --git a/pcu/PCU_Tests_SNS.ttcn b/pcu/PCU_Tests_SNS.ttcn
index 20ab608..b6a1790 100644
--- a/pcu/PCU_Tests_SNS.ttcn
+++ b/pcu/PCU_Tests_SNS.ttcn
@@ -267,16 +267,13 @@
  * PCU  -> SGSN: BVCI 24 BSSGP-STATUS Unknown BVCI
  */
 testcase TC_sns_so_bvc_reset_unknown_bvci() runs on RAW_Test_CT {
+	g_handle_rx_alive := true;
 	f_init_ns_codec(mp_nsconfig);
 	f_init_pcuif();
 	f_incoming_sns_size();
 	f_incoming_sns_config();
 	f_outgoing_sns_config();
 
-	/* wait for one ALIVE cycle, then ACK any further ALIVE in the background */
-	as_rx_alive_tx_ack(oneshot := true);
-	activate(as_rx_alive_tx_ack());
-
 	/* Expect BVC-RESET, but ignore it to prevent a race condition of BVC RESETs */
 	var template PDU_NS pdu := tr_NS_UNITDATA(t_SduCtrlB, 0, decmatch tr_BVC_RESET(?, 0, omit));
 	f_ns_exp(pdu, idx := 0);

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/23656
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: I3b4ab4093b3e5bee7e32fdf6c1de3f692b13a35f
Gerrit-Change-Number: 23656
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210406/0fc4044e/attachment.htm>


More information about the gerrit-log mailing list