bsc_test.c: fix tz.override val and note a FIXME
This commit is contained in:
parent
1b0e5540db
commit
fea1df8587
|
@ -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.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.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.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);
|
printf("Going to test item: %d\n", i);
|
||||||
msg->l3h = msgb_put(msg, test_def->length);
|
msg->l3h = msgb_put(msg, test_def->length);
|
||||||
|
@ -158,10 +158,14 @@ static void test_scan(void)
|
||||||
|
|
||||||
switch (test_def->dir) {
|
switch (test_def->dir) {
|
||||||
case TEST_SCAN_TO_BTS:
|
case TEST_SCAN_TO_BTS:
|
||||||
|
/* override timezone of msg coming from the MSC */
|
||||||
result = bsc_scan_msc_msg(conn, msg);
|
result = bsc_scan_msc_msg(conn, msg);
|
||||||
break;
|
break;
|
||||||
case TEST_SCAN_TO_MSC:
|
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;
|
break;
|
||||||
default:
|
default:
|
||||||
abort();
|
abort();
|
||||||
|
|
Loading…
Reference in New Issue