aboutsummaryrefslogtreecommitdiffstats
path: root/bts
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2019-06-07 00:28:56 +0200
committerlaforge <laforge@gnumonks.org>2019-06-08 10:09:26 +0000
commita063483b8b4abd30c92c50a44d6b04e7e63f6416 (patch)
treeab0e5f641ffe9d2969ac82794af8d9fa2b601f51 /bts
parent6bf6313e155b36fdfc1f3678957c0d2346724b9b (diff)
BTS: pcu_rr_suspend clean up and release the channel
The testcase failed becaues of an unexpected RSL Error Indication from the LAPDm system which was in the RSL emulation queue when tearing down the test environment. By calling f_rsl_chan_deact() the queue gets flushed until the RSL deactivate channel is received. It's also more clean to release the channel. Fixes: OS#4051 Change-Id: I55827626803ca81b68f905fd0df3126367951f39
Diffstat (limited to 'bts')
-rw-r--r--bts/BTS_Tests.ttcn5
1 files changed, 5 insertions, 0 deletions
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index 93716126..3244b48a 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -3999,6 +3999,11 @@ private function f_TC_rr_suspend_req(charstring id) runs on ConnHdlr {
setverdict(fail, "Timeout waiting for SUSP REQ on PCUIF");
}
}
+
+ /* release the channel */
+ f_rsl_chan_deact();
+ f_L1CTL_DM_REL_REQ(L1CTL, g_chan_nr);
+ f_rslem_unregister(0, g_chan_nr);
}
testcase TC_pcu_rr_suspend() runs on test_CT {
var ConnHdlrPars pars;