Make vg_regtest return 1 if any tests fail.  Useful for scripts that call it.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2283 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/tests/vg_regtest.in b/tests/vg_regtest.in
index f76f363..98c04f6 100755
--- a/tests/vg_regtest.in
+++ b/tests/vg_regtest.in
@@ -384,6 +384,12 @@
 }
 summarise_results();
 
+if (0 == $num_failures{"stdout"} && 0 == $num_failures{"stderr"}) {
+    exit 0;
+} else {
+    exit 1;
+}
+
 ##--------------------------------------------------------------------##
 ##--- end                                               vg_regtest ---##
 ##--------------------------------------------------------------------##