From fea1df858767a15ca766f360b95ea9ecc78b6547 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Sat, 27 Feb 2016 23:38:28 +0100 Subject: bsc_test.c: fix tz.override val and note a FIXME --- openbsc/tests/bsc/bsc_test.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'openbsc') 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(); -- cgit v1.2.3