]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Make vg_regtest return 1 if any tests fail. Useful for scripts that call it.
authorNicholas Nethercote <n.nethercote@gmail.com>
Mon, 1 Mar 2004 08:27:37 +0000 (08:27 +0000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Mon, 1 Mar 2004 08:27:37 +0000 (08:27 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2283

tests/vg_regtest.in

index f76f363d23a1c9964daa595da3c12c03cebaf417..98c04f63f6e59fe6f312f00586b4475ba2d2045a 100755 (executable)
@@ -384,6 +384,12 @@ foreach my $f (@fs) {
 }
 summarise_results();
 
+if (0 == $num_failures{"stdout"} && 0 == $num_failures{"stderr"}) {
+    exit 0;
+} else {
+    exit 1;
+}
+
 ##--------------------------------------------------------------------##
 ##--- end                                               vg_regtest ---##
 ##--------------------------------------------------------------------##