]> git.llucax.com Git - software/posixx.git/blobdiff - test/Makefile
Add some help on adding suppressions to valgrind.
[software/posixx.git] / test / Makefile
index 94e3b2cb25996c2696ebd3d800db149bac40a60e..3f644f757dac95a9e88e272bb1e3203c4d77fff7 100644 (file)
@@ -10,7 +10,7 @@ TESTCMD = ./$(TESTPRG) --detect_memory_leak=1 --report_level=short \
 
 VALGRIND = valgrind --tool=memcheck --leak-check=yes --db-attach=no \
                --num-callers=24 --leak-resolution=high --track-fds=yes \
-               --suppressions=valgrind.suppressions
+               --suppressions=valgrind.suppressions --error-exitcode=1
 
 
 SOURCES = $(shell find -name '*.cpp')
@@ -36,9 +36,9 @@ endif
 ifneq ($(V), 1)
 NICE_CXX = @echo "  CXX $@"; $(CXX)
 NICE_LINK = @echo "  LINK $@"; $(CXX)
-NICE_TEST = @echo "  TEST"; $(TESTCMD) > /dev/null 2>&1
+NICE_TEST = @echo "  TEST"; $(TESTCMD) > test_suite.log 2>&1
 NICE_MEMTEST = @echo "  MEMTEST"; $(VALGRIND) --log-file=valgrind.log \
-               $(TESTCMD) > /dev/null 2>&1
+               $(TESTCMD) > valgrind.test_suite.log 2>&1
 NICE_CLEAN = @echo "  CLEAN"; $(RM)
 else
 NICE_CXX = $(CXX)