aboutsummaryrefslogtreecommitdiffstats
path: root/tests/msc_vlr/msc_vlr_test_reject_concurrency.c
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2018-02-07 12:06:03 +0100
committerMax <msuraev@sysmocom.de>2018-02-07 12:07:24 +0100
commit093300d141c300651954473d73138b72de04d931 (patch)
tree3515cb6d025849aa236435b875920c2e0cd217cc /tests/msc_vlr/msc_vlr_test_reject_concurrency.c
parentd83b17b3c7cb0a317dede784c0f688cffb879537 (diff)
Move IMSI into test parameters
This makes test routines more flexible and allows to easier re-use them for tests with different IMSIs. Change-Id: I74d46fdb7e87dc04c6b82a0b6f3ce6bef60bde58 Related: OS#2864
Diffstat (limited to 'tests/msc_vlr/msc_vlr_test_reject_concurrency.c')
-rw-r--r--tests/msc_vlr/msc_vlr_test_reject_concurrency.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/tests/msc_vlr/msc_vlr_test_reject_concurrency.c b/tests/msc_vlr/msc_vlr_test_reject_concurrency.c
index 2377c19b3..d6676cf8b 100644
--- a/tests/msc_vlr/msc_vlr_test_reject_concurrency.c
+++ b/tests/msc_vlr/msc_vlr_test_reject_concurrency.c
@@ -115,9 +115,8 @@ void _normal_cm_service_req()
EXPECT_ACCEPTED(true);
}
-void _page()
+void _page(const char *imsi)
{
- const char *imsi = "901700000004620";
struct vlr_subscr *vsub;
BTW("an SMS is sent, MS is paged");
@@ -318,12 +317,12 @@ void test_reject_paging_resp_during_cm()
comment_end();
}
-void test_reject_paging_resp_during_paging_resp()
+void test_reject_paging_resp_during_paging_resp(const char *imsi)
{
comment_start();
_normal_lu();
- _page();
+ _page(imsi);
_paging_resp_part1();
BTW("MS sends another erratic Paging Response which is dropped silently");
@@ -335,12 +334,12 @@ void test_reject_paging_resp_during_paging_resp()
comment_end();
}
-void test_reject_lu_during_paging_resp()
+void test_reject_lu_during_paging_resp(const char *imsi)
{
comment_start();
_normal_lu();
- _page();
+ _page(imsi);
_paging_resp_part1();
BTW("MS sends erratic LU Request, which is dropped silently");
@@ -355,12 +354,12 @@ void test_reject_lu_during_paging_resp()
comment_end();
}
-void test_accept_cm_during_paging_resp()
+void test_accept_cm_during_paging_resp(const char *imsi)
{
comment_start();
_normal_lu();
- _page();
+ _page(imsi);
_paging_resp_part1();
BTW("CM Service Request during open connection is accepted");