diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-05-12 17:40:04 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-05-12 17:40:04 -0700 |
commit | 683d53ca26053de7d1fa838dffa7e0ee9d9340cd (patch) | |
tree | 9113839ce4e8558b67397868d77d81071ba64c65 | |
parent | 827898fc1b41e1974bf4ec2eebbd97fe23ff3d08 (diff) | |
download | mu-683d53ca26053de7d1fa838dffa7e0ee9d9340cd.tar.gz |
1358 - inform shell of test failure
-rw-r--r-- | 002test.cc | 4 |
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; } |