aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/bsc
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc/tests/bsc')
-rw-r--r--openbsc/tests/bsc/bsc_test.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/openbsc/tests/bsc/bsc_test.c b/openbsc/tests/bsc/bsc_test.c
index 881c785f3..d032f61b4 100644
--- a/openbsc/tests/bsc/bsc_test.c
+++ b/openbsc/tests/bsc/bsc_test.c
@@ -150,7 +150,7 @@ static void test_scan(void)
bts->tz.hr = get_int(test_def->params, test_def->n_params, "tz_hr", 0, &is_set);
bts->tz.mn = get_int(test_def->params, test_def->n_params, "tz_mn", 0, &is_set);
bts->tz.dst = get_int(test_def->params, test_def->n_params, "tz_dst", 0, &is_set);
- bts->tz.override = get_int(test_def->params, test_def->n_params, "tz_dst", is_set ? 1 : 0, NULL);
+ bts->tz.override = 1;
printf("Going to test item: %d\n", i);
msg->l3h = msgb_put(msg, test_def->length);
@@ -158,10 +158,14 @@ static void test_scan(void)
switch (test_def->dir) {
case TEST_SCAN_TO_BTS:
+ /* override timezone of msg coming from the MSC */
result = bsc_scan_msc_msg(conn, msg);
break;
case TEST_SCAN_TO_MSC:
- result = bsc_scan_msc_msg(conn, msg);
+ /* override timezone of msg coming from the BSC */
+ /* FIXME: no test for this case is defined in
+ * test_scan_defs[], so this is never used. */
+ result = bsc_scan_bts_msg(conn, msg);
break;
default:
abort();