VLR tests: always print test parameters
For each test print:
* the test number
* IMSI
Unfortunately tests are organized in such a way that we don't know the
number of particular test in advance. Nevertheless, it make sense to
always print it regardless of -v option presense.
Related: OS#2864
Change-Id: I2e1d7701f5322d2311f32b796148a8b414f53b8e
diff --git a/tests/msc_vlr/msc_vlr_test_rest.c b/tests/msc_vlr/msc_vlr_test_rest.c
index c19c4c6..cb5e24f 100644
--- a/tests/msc_vlr/msc_vlr_test_rest.c
+++ b/tests/msc_vlr/msc_vlr_test_rest.c
@@ -23,9 +23,9 @@
#include "msc_vlr_tests.h"
-void test_early_stage()
+void test_early_stage(uint8_t nr, const char *imsi)
{
- comment_start();
+ comment_start(nr, imsi);
btw("NULL conn");
EXPECT_ACCEPTED(false);
@@ -59,12 +59,12 @@
EXPECT_CONN_COUNT(0);
clear_vlr();
- comment_end();
+ comment_end(nr, imsi);
}
-void test_cm_service_without_lu()
+void test_cm_service_without_lu(uint8_t nr, const char *imsi)
{
- comment_start();
+ comment_start(nr, imsi);
btw("CM Service Request without a prior Location Updating");
expect_bssap_clear();
@@ -75,12 +75,12 @@
EXPECT_CONN_COUNT(0);
clear_vlr();
- comment_end();
+ comment_end(nr, imsi);
}
-void test_two_lu()
+void test_two_lu(uint8_t nr, const char *imsi)
{
- comment_start();
+ comment_start(nr, imsi);
btw("Location Update request causes a GSUP LU request to HLR");
lu_result_sent = RES_NONE;
@@ -147,12 +147,12 @@
EXPECT_CONN_COUNT(0);
clear_vlr();
- comment_end();
+ comment_end(nr, imsi);
}
-void test_lu_unknown_tmsi()
+void test_lu_unknown_tmsi(uint8_t nr, const char *imsi)
{
- comment_start();
+ comment_start(nr, imsi);
btw("Location Update request with unknown TMSI sends ID Request for IMSI");
lu_result_sent = RES_NONE;
@@ -188,7 +188,7 @@
VERBOSE_ASSERT(lu_result_sent, == RES_ACCEPT, "%d");
EXPECT_CONN_COUNT(0);
clear_vlr();
- comment_end();
+ comment_end(nr, imsi);
}
msc_vlr_test_func_t msc_vlr_tests[] = {