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
diff --git a/tests/msc_vlr/msc_vlr_test_reject_concurrency.c b/tests/msc_vlr/msc_vlr_test_reject_concurrency.c
index 2377c19..d6676cf 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 @@
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 @@
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 @@
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 @@
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");