gbproxy_test: Provide enough disabled categories to please valgrind

An empty log_info is not enough. We need to make sure that at least
DLGLOBAL is present. Instead of doing that make sure that we have
enough entries.

==26163== Conditional jump or move depends on uninitialised value(s)
==26163==    at 0x403B289: osmo_vlogp (logging.c:290)
==26163==    by 0x403B3DA: logp2 (logging.c:339)
==26163==    by 0x804D027: gbprox_relay2bvci (gb_proxy.c:347)
==26163==    by 0x804D3CF: gbprox_rx_sig_from_sgsn (gb_proxy.c:589)
==26163==    by 0x804DBFC: gbprox_rcvmsg (gb_proxy.c:685)
==26163==    by 0x4052CB0: gprs_ns_process_msg (gprs_ns.c:669)
==26163==    by 0x4052F70: gprs_ns_rcvmsg (gprs_ns.c:1053)
==26163==    by 0x804BB49: gprs_process_message (gbproxy_test.c:488)
==26163==    by 0x804BC4C: send_ns_unitdata (gbproxy_test.c:210)
==26163==    by 0x804BDE8: send_bssgp_reset_ack (gbproxy_test.c:243)
==26163==    by 0x804B54F: main (gbproxy_test.c:863)
==26163==
This commit is contained in:
Holger Hans Peter Freyther 2014-07-07 19:48:14 +02:00
parent dcde9cea90
commit 892764254a
1 changed files with 6 additions and 1 deletions

View File

@ -871,8 +871,13 @@ static void test_gbproxy_ra_patching()
nsi = NULL;
}
static const struct log_info_cat all_off_categories[Debug_LastEntry] = {
};
static struct log_info info = {};
static struct log_info info = {
.cat = all_off_categories,
.num_cat = ARRAY_SIZE(all_off_categories)
};
int main(int argc, char **argv)
{