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/.
lynxis lazus gerrit-no-reply at lists.osmocom.orglynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/23756 )
Change subject: ns: TC_sns_bss_change_weight_timeout rework TC to use g_handle_rx_alive
......................................................................
ns: TC_sns_bss_change_weight_timeout rework TC to use g_handle_rx_alive
With g_handle_rx_alive the test case doesn't need to use alt{}
as f_ns_exp takes care of the NS_ALIVE.
Related: OS#5036
Change-Id: I45f4392b556912bf60859f354a5687a44e6beeb1
---
M ns/NS_Tests.ttcn
1 file changed, 5 insertions(+), 8 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/56/23756/1
diff --git a/ns/NS_Tests.ttcn b/ns/NS_Tests.ttcn
index eaf3c60..f69bbe0 100644
--- a/ns/NS_Tests.ttcn
+++ b/ns/NS_Tests.ttcn
@@ -469,6 +469,7 @@
}
testcase TC_sns_bss_change_weight() runs on RAW_Test_CT {
+ g_handle_rx_alive := true;
f_init_vty();
f_init_ns_codec(mp_nsconfig);
f_incoming_sns_size();
@@ -487,6 +488,7 @@
var template PDU_NS rx;
var NSVCConfiguration nsvc_cfg;
+ g_handle_rx_alive := true;
f_init_vty();
f_init_ns_codec(mp_nsconfig);
f_incoming_sns_size();
@@ -507,14 +509,8 @@
rx := tr_SNS_CHG_WEIGHT(g_nsconfig.nsei, ?, v4 := omit, v6 := v6_elem);
}
- alt {
- [] NSCP[0].receive(rx) {
- i := i + 1;
- if (i < 3) {
- repeat;
- }
- }
- [] as_rx_alive_tx_ack();
+ for (i := 0; i < 3; i := i + 1) {
+ f_ns_exp(rx);
}
if (nsvc_cfg.provider.ip.address_family == AF_INET) {
@@ -525,6 +521,7 @@
/* expect one single SNS-SIZE with RESET flag; no v4 EP; 4x v6 EP */
rx := f_ns_exp(tr_SNS_SIZE(g_nsconfig.nsei, rst_flag := true, max_nsvcs := ?,
num_v4 := omit, num_v6 := ?), 0);
+ }
setverdict(pass);
f_clean_ns_codec();
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/23756
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: I45f4392b556912bf60859f354a5687a44e6beeb1
Gerrit-Change-Number: 23756
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/20210414/d12f269a/attachment.htm>