[libpeas] Exit if running a test with valgrind or callgrind fails



commit 771317d9703cc7b2000417b045fd6eed6f963744
Author: Garrett Regier <alias301 gmail com>
Date:   Thu Mar 17 17:04:45 2011 -0700

    Exit if running a test with valgrind or callgrind fails

 tests/Makefile.tests |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/Makefile.tests b/tests/Makefile.tests
index 99657ed..0605e93 100644
--- a/tests/Makefile.tests
+++ b/tests/Makefile.tests
@@ -37,7 +37,7 @@ test-valgrind: all
 	     libtool --mode=execute valgrind --leak-check=full \
 	     --leak-resolution=high --num-callers=20 \
 	     --suppressions=$(top_srcdir)/tests/valgrind.suppressions \
-	     --log-file=vgdump-$$test_prog $$test_prog ; \
+	     --log-file=vgdump-$$test_prog $$test_prog || exit 1 ; \
 	 done
 
 test-callgrind: all
@@ -48,7 +48,7 @@ test-callgrind: all
 	   fi ; \
 	   libtool --mode=execute valgrind --tool=callgrind \
 	     --callgrind-out-file=cgdump-$$test_prog \
-	     --log-file=/dev/null $$test_prog ; \
+	     --log-file=/dev/null $$test_prog || exit 1 ; \
 	 done
 
 else



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