bsc_test.c: fix tz.override val and note a FIXME

This commit is contained in:
Neels Hofmeyr 2016-02-27 23:38:28 +01:00
parent 1b0e5540db
commit fea1df8587
1 changed files with 6 additions and 2 deletions

View File

@ -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();