[gjs] gdb-check, valgrind-check: Run under temporary bus



commit 853cb81a3f3604529b3167c396f23e0d9fcad159
Author: Colin Walters <walters verbum org>
Date:   Wed Dec 1 17:56:42 2010 -0500

    gdb-check, valgrind-check: Run under temporary bus
    
    TESTS_ENVIRONMENT sets DBUS_SESSION_BUS_ADDRESS='', so if we're
    not using a temporary session bus, the DBus unit test will end
    up autolaunching a bus which ends in various tears.
    
    Change both gdb and valgrind wrappers use $(RUN_WITH_DBUS).

 Makefile-test.am |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/Makefile-test.am b/Makefile-test.am
index df3bdd2..1e05841 100644
--- a/Makefile-test.am
+++ b/Makefile-test.am
@@ -125,13 +125,14 @@ check:	test
 gdb-check gdb-test: $(tests_dependencies)
 	failed=; for prog in ${TEST_PROGS}; do \
 	  ${TESTS_ENVIRONMENT} GJS_TEST_TIMEOUT=0 libtool --mode=execute gdb -x \
-	      $(top_srcdir)/test/unittest.gdb --args $$prog; \
+	      $(RUN_WITH_DBUS) $(top_srcdir)/test/unittest.gdb --args $$prog; \
 	  done
 
 valgrind-check valgrind-test: $(tests_dependencies)
 	@test -z "${TEST_PROGS}" || { \
 	  failed=; for prog in ${TEST_PROGS}; do \
 	    ${TESTS_ENVIRONMENT} G_SLICE=always-malloc	\
+	    $(RUN_WITH_DBUS) \
 	    $(LIBTOOL) --mode=execute valgrind 		\
 	    --log-file=valgrind.$$prog.log 		\
 	    --error-exitcode=1 				\



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]