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_tests.c b/tests/msc_vlr/msc_vlr_tests.c
index 713bb16..82ab8bc 100644
--- a/tests/msc_vlr/msc_vlr_tests.c
+++ b/tests/msc_vlr/msc_vlr_tests.c
@@ -826,6 +826,8 @@
void run_tests(int nr)
{
int test_nr;
+ const char *imsi = "901700000004620";
+
nr--; /* arg's first test is 1, in here it's 0 */
for (test_nr = 0; msc_vlr_tests[test_nr]; test_nr++) {
if (nr >= 0 && test_nr != nr)
@@ -834,7 +836,7 @@
if (cmdline_opts.verbose)
fprintf(stderr, "(test nr %d)\n", test_nr + 1);
- msc_vlr_tests[test_nr]();
+ msc_vlr_tests[test_nr](imsi);
if (cmdline_opts.verbose)
fprintf(stderr, "(test nr %d)\n", test_nr + 1);