summaryrefslogtreecommitdiffstats
path: root/bts/BTS_Tests.ttcn
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-02-28 21:39:35 +0100
committerHarald Welte <laforge@gnumonks.org>2018-02-28 21:05:51 +0000
commit56c0580c5fc8e88235189596bd0c0ff9bcab2732 (patch)
tree4413dc3cb430a157b41761432be9cb9e170cb721 /bts/BTS_Tests.ttcn
parent282ca4b49a94a61ccb15cfab7b872d4146671cd0 (diff)
bts: Fix bugs in RACH Tests (timer not started, wrong CS/PS function)
Diffstat (limited to 'bts/BTS_Tests.ttcn')
-rw-r--r--bts/BTS_Tests.ttcn6
1 files changed, 3 insertions, 3 deletions
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index e68a20d..48ca1fd 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -488,9 +488,7 @@ testcase TC_chan_act_wrong_nr() runs on test_CT {
/* like L1SAP_IS_PACKET_RACH */
private function ra_is_ps(OCT1 ra) return boolean {
- if (ra and4b 'F0'O == '70'O) {
- return true;
- } else if (ra and4b '0F'O == '0F'O) {
+ if ((ra and4b 'F0'O == '70'O) and (ra and4b '0F'O != '0F'O)) {
return true;
}
return false;
@@ -522,6 +520,7 @@ testcase TC_rach_content() runs on test_CT {
fn_last := fn;
timer T := 5.0;
+ T.start;
alt {
[] RSL_CCHAN.receive(tr_RSL_UD(tr_RSL_CHAN_RQD(ra, fn, ?))) {
T.stop;
@@ -558,6 +557,7 @@ testcase TC_rach_count() runs on test_CT {
}
var integer rsl_chrqd := 0;
timer T := 3.0;
+ T.start;
alt {
[] RSL_CCHAN.receive(tr_RSL_UD(tr_RSL_CHAN_RQD(?,?))) {
rsl_chrqd := rsl_chrqd + 1;