summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-02-27 23:38:28 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-02-27 23:38:28 +0100
commitfea1df858767a15ca766f360b95ea9ecc78b6547 (patch)
treec556dd358fbb5fdeb0e477e26553a533f5cbb47d
parent1b0e5540dba697c9cf213e4f0aebc4baaf1618cb (diff)
bsc_test.c: fix tz.override val and note a FIXME
-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 881c785..d032f61 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();