Osmocom test suites in TTCN-3 (Eclipse Titan) https://osmocom.org/projects/core-testing-infra
Go to file
Vadim Yanitskiy 5f6dd352ea BSC_Tests: fix race conditions in TC_chan_alloc_algo_ass_dynamic
In cases a), b), c), d), and e) we're sending one or more Measurement
Reports via the A-bis/RSL, and then immediately triggering a traffic
channel assignment by calling f_TC_chan_alloc_algo(), which sends an
Assignment Request via the A interface.

The above-mentioned messages are sent immediately all together, so it
may happen that the BSC handles the Assignment Request earlier than
the Measurement Report(s).  In this case there will be no RxLev
samples, so the BSC would fall-back to ascending allocation order.

Recently we saw this race condition actually happening on Jenkins:

https://jenkins.osmocom.org/jenkins/view/TTCN3/job/ttcn3-bsc-test-sccplite/1583/

Let's introduce an artificial delay before sending the Assignment
Request, so that the BSC has enough time to process received MRs.

Change-Id: I2fd6508488e935d208a7aba8e2f215b1cc14ad32
2022-08-29 15:39:06 +00:00
COMMON initial chekin of code received by Ericsson on 20170410 2017-04-12 12:13:44 +02:00
ROHC_CNL113426_LATEST import Ericsson NS, ISUP, ROHC and SNDCP modules for TITAN 2017-07-25 08:23:52 +02:00
SCCP_Test regen_makefile.sh: set executable name explicitly 2021-10-13 11:12:22 +02:00
asn-test HNBAP, RUA and RANAP protocol codecs 2019-04-25 20:07:11 +00:00
bin Remove M3UA/MTP3/SCCP code from this repo, use upstream repos 2018-03-18 12:52:20 +01:00
bsc BSC_Tests: fix race conditions in TC_chan_alloc_algo_ass_dynamic 2022-08-29 15:39:06 +00:00
bsc-nat ran emulation: allow multiple reset attempts 2022-03-31 17:49:10 +00:00
bts BTS_Tests: add TC_{chan_act,encr_cmd}_a54 to control 2022-08-27 19:24:32 +07:00
cbc cbc: Add expected-results.xml 2022-08-05 22:31:33 +02:00
ccid ccid: Lots of CCID helpers have been moved to titan.TestPorts.USB 2022-02-25 16:56:16 +01:00
deps deps: use titan.TestPorts.UDPasp from ECLIPSEGITLAB_REPOS 2022-08-18 12:37:27 +00:00
doc doc: Always annotate codec port types in case of IPL4/UD ports 2021-12-22 14:24:50 +00:00
fr Avoid generating zero-length packets 2022-04-12 22:52:47 +02:00
fr-net Start BSSGP_CT and NS_CT as alive-type component in all testsuites 2022-02-24 11:47:43 +00:00
gbproxy update various expected-results.xml 2022-08-12 02:31:23 +00:00
ggsn_tests ggsn,pgw: Expect Multiple-Services-Indicator AVP in Initial CCR 2022-06-21 17:07:20 +02:00
hlr regen_makefile.sh: set executable name explicitly 2021-10-13 11:12:22 +02:00
hnbgw hnbap: Use protocolExtensions := * in tr and omit in ts templates 2022-08-24 13:57:52 +02:00
hnodeb update various expected-results.xml 2022-08-12 02:31:23 +00:00
lapdm regen_makefile.sh: set executable name explicitly 2021-10-13 11:12:22 +02:00
library hnbap: Use protocolExtensions := * in tr and omit in ts templates 2022-08-24 13:57:52 +02:00
mgw update various expected-results.xml 2022-08-12 02:31:23 +00:00
mme lib/DIAMETER: Allow sending CEA with AuthAppId 2022-03-14 12:05:37 +01:00
msc update various expected-results.xml 2022-08-12 02:31:23 +00:00
ns update various expected-results.xml 2022-08-12 02:31:23 +00:00
pcap-client Avoid generating zero-length packets 2022-04-12 22:52:47 +02:00
pcu update various expected-results.xml 2022-08-12 02:31:23 +00:00
pgw update various expected-results.xml 2022-08-12 02:31:23 +00:00
remsim remsim: server: TC_connect_{client,bankd}_duplicate 2022-05-04 10:08:44 +00:00
sccp Avoid generating zero-length packets 2022-04-12 22:52:47 +02:00
selftest regen_makefile.sh: set executable name explicitly 2021-10-13 11:12:22 +02:00
sgsn update various expected-results.xml 2022-08-12 02:31:23 +00:00
simtrace move SIMTRACE_{Types,Templates,Emulation}.ttcn to library 2022-02-25 16:56:16 +01:00
sip regen_makefile.sh: set executable name explicitly 2021-10-13 11:12:22 +02:00
smlc regen_makefile.sh: set executable name explicitly 2021-10-13 11:12:22 +02:00
stp stp: Fix sporadic failure in TC_ipa_to_m3ua_ni 2022-05-26 12:52:07 +00:00
sysinfo regen_makefile.sh: set executable name explicitly 2021-10-13 11:12:22 +02:00
.checkpatch.conf checkpatch.conf: ignore imported sbcap *.asn files 2022-07-18 08:56:46 +00:00
.gitignore .gitignore sms.db 2021-08-06 14:03:28 +00:00
.gitreview Add git-review config 2017-12-13 11:15:48 +01:00
Common.cfg Common.cfg: Always log VEERDICTOP on Console 2020-10-10 18:15:37 +02:00
Makefile Add script to regen library/DIAMETER_Types.ttcn 2022-05-18 12:09:58 +00:00
compare-results.py compare_results.py: use ansi colors 2020-05-19 19:25:35 +00:00
gen_links.sh.inc gen_links.sh.inc: Fix globbing writing '*.ttcn' to */.gitignore 2022-03-22 17:49:55 +00:00
log_merge.sh Put build / run scripts under Apache 2.0 license 2019-06-21 09:34:09 +00:00
mask_expected_results.sh add mask_expected_results.sh 2018-04-11 19:32:01 +02:00
regen-makefile.sh regen_makefile.sh: files/flags in separate lines 2021-10-12 16:35:01 +02:00
rmlinks.sh Remove M3UA/MTP3/SCCP code from this repo, use upstream repos 2018-03-18 12:52:20 +01:00
start-testsuite.sh start-testsuite.sh: allow overriding TTCN3_BIN_DIR 2020-05-29 06:10:42 +00:00
ttcn3-dumpcap-start.sh ttcn3-dumpcap-start.sh: Always capture lo interface 2020-12-12 16:28:30 +01:00
ttcn3-dumpcap-stop.sh gbproxy: Properly capture HDLC/FR traffic in addition to ethernet 2020-12-11 15:32:08 +01:00
ttcn3-tcpdump-start.sh tcpdump capture script: check permissions to fix running in a netns 2022-05-24 08:32:52 +00:00
ttcn3-tcpdump-stop.sh ttcn3-tcpdump-stop: add timeout for talloc report 2021-12-17 12:25:29 +01:00
update_expected_results_from_jenkins.sh Put build / run scripts under Apache 2.0 license 2019-06-21 09:34:09 +00:00