about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-05-12 17:40:04 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-05-12 17:40:04 -0700
commit683d53ca26053de7d1fa838dffa7e0ee9d9340cd (patch)
tree9113839ce4e8558b67397868d77d81071ba64c65
parent827898fc1b41e1974bf4ec2eebbd97fe23ff3d08 (diff)
downloadmu-683d53ca26053de7d1fa838dffa7e0ee9d9340cd.tar.gz
1358 - inform shell of test failure
-rw-r--r--002test.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/002test.cc b/002test.cc
index 0b445526..fa6c50a2 100644
--- a/002test.cc
+++ b/002test.cc
@@ -58,10 +58,12 @@ if (Run_tests) {
   }
   // End Tests
   cerr << '\n';
-  if (Num_failures > 0)
+  if (Num_failures > 0) {
     cerr << Num_failures << " failure"
          << (Num_failures > 1 ? "s" : "")
          << '\n';
+    return 1;
+  }
   return 0;
 }