diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-07-07 19:48:14 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-07-07 19:48:14 +0200 |
commit | 2840b3f6c34789f9096c5ac19f45a6532e5e5a0e (patch) | |
tree | 315ae67961b62c542246b502f2c0335690848a74 /openbsc/tests/gbproxy | |
parent | 461966b8ef7b1a5cb26a875941ed27474dd2b045 (diff) |
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==
Diffstat (limited to 'openbsc/tests/gbproxy')
-rw-r--r-- | openbsc/tests/gbproxy/gbproxy_test.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/openbsc/tests/gbproxy/gbproxy_test.c b/openbsc/tests/gbproxy/gbproxy_test.c index 74a220ab0..19c150eda 100644 --- a/openbsc/tests/gbproxy/gbproxy_test.c +++ b/openbsc/tests/gbproxy/gbproxy_test.c @@ -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) { |