[libpeas] Have GSlice debug when running tests, except for valgrind



commit d88d62f5c00e5ec765373847ba02a8bb881b81b0
Author: Garrett Regier <alias301 gmail com>
Date:   Sun Feb 6 04:51:51 2011 -0800

    Have GSlice debug when running tests, except for valgrind

 tests/Makefile.tests |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/tests/Makefile.tests b/tests/Makefile.tests
index e725fee..4315269 100644
--- a/tests/Makefile.tests
+++ b/tests/Makefile.tests
@@ -4,13 +4,14 @@ TEST_PROGS =
 
 test: $(TEST_PROGS)
 	@test -z "$(TEST_PROGS)" || \
-	 $(GTESTER) --verbose $(TEST_PROGS)
+	 G_SLICE=debug-blocks $(GTESTER) --verbose $(TEST_PROGS)
 
 test-gdb: $(TEST_PROGS)
 	@test -z "$(TEST_PROGS)" || \
 	 for test_prog in $(TEST_PROGS) ; do \
-	   $(GTESTER) --verbose $$test_prog || { \
-	     libtool --mode=execute gdb --ex "run --verbose" $$test_prog ; \
+	   G_SLICE=debug-blocks $(GTESTER) --verbose $$test_prog || { \
+	     G_SLICE=debug-blocks \
+	       libtool --mode=execute gdb --ex "run --verbose" $$test_prog ; \
 	     exit 1 ; \
 	   } \
 	 done
@@ -29,6 +30,6 @@ test-valgrind: $(TEST_PROGS)
 
 generate-report: $(TEST_PROGS)
 	@test -z "$(TEST_PROGS)" || \
-	 $(GTESTER) $(GTESTER_ARGS) $(TEST_PROGS)
+	 G_SLICE=debug-blocks $(GTESTER) $(GTESTER_ARGS) $(TEST_PROGS)
 
 CLEANFILES = vgdump-*



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