diff options
author | Max <msuraev@sysmocom.de> | 2018-02-06 19:19:52 +0100 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2018-02-07 12:08:19 +0100 |
commit | b0a4314911140b1599cccfc8171fcdab4cd9bfab (patch) | |
tree | 519c99bb13c4020a28d7cc3b6b132dfa97367c3d /tests/msc_vlr/msc_vlr_tests.c | |
parent | 29ce08a77aaa1c7ff5e1e40e41bba3bf16455636 (diff) |
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
Diffstat (limited to 'tests/msc_vlr/msc_vlr_tests.c')
-rw-r--r-- | tests/msc_vlr/msc_vlr_tests.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/msc_vlr/msc_vlr_tests.c b/tests/msc_vlr/msc_vlr_tests.c index c639f98a4..ba49180f2 100644 --- a/tests/msc_vlr/msc_vlr_tests.c +++ b/tests/msc_vlr/msc_vlr_tests.c @@ -829,7 +829,7 @@ void *msgb_ctx = NULL; static void run_tests(int nr, const char *imsi) { - int test_nr; + uint8_t test_nr; printf("Testing for IMSI %s\n", imsi); @@ -838,13 +838,7 @@ static void run_tests(int nr, const char *imsi) if (nr >= 0 && test_nr != nr) continue; - if (cmdline_opts.verbose) - fprintf(stderr, "(test nr %d)\n", test_nr + 1); - - msc_vlr_tests[test_nr](imsi); - - if (cmdline_opts.verbose) - fprintf(stderr, "(test nr %d)\n", test_nr + 1); + msc_vlr_tests[test_nr](test_nr + 1, imsi); check_talloc(msgb_ctx, tall_bsc_ctx, 8); } |