mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
68043c2e8c
valgrind locally complains about the allocations in autodata leaking: ``` ==138200== 16 bytes in 1 blocks are still reachable in loss record 1 of 2 ==138200== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==138200== by 0x10D41A: autodata_register_ (autodata.c:20) ==138200== by 0x10E7B8: register_autotype_type_to_string (type_to_string.h:79) ==138200== by 0x10F5CA: register_one_type_to_string0 (block.c:259) ==138200== by 0x19734C: __libc_csu_init (in /home/rusty/devel/cvs/lightning/common/test/run-route-specific) ==138200== by 0x4A3D03F: (below main) (libc-start.c:264) ==138200== ==138200== 176 bytes in 1 blocks are still reachable in loss record 2 of 2 ==138200== at 0x483DFAF: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==138200== by 0x10D472: autodata_register_ (autodata.c:26) ==138200== by 0x122D37: register_autotype_type_to_string (type_to_string.h:79) ==138200== by 0x122F1F: register_one_type_to_string0 (node_id.c:50) ==138200== by 0x19734C: __libc_csu_init (in /home/rusty/devel/cvs/lightning/common/test/run-route-specific) ==138200== by 0x4A3D03F: (below main) (libc-start.c:264) ==138200== make: *** [Makefile:638: unittest/common/test/run-route-specific] Error 7 ``` Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
16 lines
992 B
Makefile
16 lines
992 B
Makefile
PLUGIN_TESTLIBPLUGIN_SRC := tests/plugins/test_libplugin.c
|
|
PLUGIN_TESTLIBPLUGIN_OBJS := $(PLUGIN_TESTLIBPLUGIN_SRC:.c=.o)
|
|
|
|
tests/plugins/test_libplugin: bitcoin/chainparams.o $(PLUGIN_TESTLIBPLUGIN_OBJS) $(PLUGIN_LIB_OBJS) $(PLUGIN_COMMON_OBJS) $(JSMN_OBJS) $(CCAN_OBJS)
|
|
|
|
$(PLUGIN_TESTLIBPLUGIN_OBJS): $(PLUGIN_LIB_HEADER)
|
|
|
|
PLUGIN_TESTSELFDISABLE_AFTER_GETMANIFEST_SRC := tests/plugins/test_selfdisable_after_getmanifest.c
|
|
PLUGIN_TESTSELFDISABLE_AFTER_GETMANIFEST_OBJS := $(PLUGIN_TESTSELFDISABLE_AFTER_GETMANIFEST_SRC:.c=.o)
|
|
|
|
tests/plugins/test_selfdisable_after_getmanifest: bitcoin/chainparams.o $(PLUGIN_TESTSELFDISABLE_AFTER_GETMANIFEST_OBJS) common/autodata.o common/json.o common/json_stream.o common/setup.o common/utils.o $(JSMN_OBJS) $(CCAN_OBJS)
|
|
|
|
# Make sure these depend on everything.
|
|
ALL_TEST_PROGRAMS += tests/plugins/test_libplugin tests/plugins/test_selfdisable_after_getmanifest
|
|
ALL_C_SOURCES += $(PLUGIN_TESTLIBPLUGIN_SRC) $(PLUGIN_TESTSELFDISABLE_AFTER_GETMANIFEST_SRC)
|