Some build fixes

This commit is contained in:
Stef Walter 2011-11-19 08:08:12 +01:00 committed by Stef Walter
parent a075105bf4
commit 5946712810
2 changed files with 12 additions and 1 deletions

View File

@ -3,6 +3,7 @@ NULL =
TEST_SUPPRESSIONS = $(top_builddir)/build/valgrind-suppressions TEST_SUPPRESSIONS = $(top_builddir)/build/valgrind-suppressions
perform-memcheck: $(TEST_PROGS) $(TEST_SUPPRESSIONS) perform-memcheck: $(TEST_PROGS) $(TEST_SUPPRESSIONS)
@make -C $(top_builddir)/build all
@for test in $(TEST_PROGS); do \ @for test in $(TEST_PROGS); do \
G_SLICE=always-malloc libtool --mode=execute \ G_SLICE=always-malloc libtool --mode=execute \
valgrind --trace-children=no --gen-suppressions=all \ valgrind --trace-children=no --gen-suppressions=all \
@ -23,6 +24,5 @@ coverage:
clear-coverage: clear-coverage:
$(LCOV) --directory . --zerocounters $(LCOV) --directory . --zerocounters
.PHONY: coverage
endif endif

View File

@ -353,3 +353,14 @@
fun:g_main_loop_run fun:g_main_loop_run
fun:gdbus_shared_thread_func fun:gdbus_shared_thread_func
} }
{
<insert_a_suppression_name_here>
Memcheck:Leak
...
fun:g_set_error_literal
fun:g_cancellable_set_error_if_cancelled
fun:g_socket_receive_message
...
fun:g_main_loop_run
fun:gdbus_shared_thread_func
}