aboutsummaryrefslogtreecommitdiffstats
path: root/checks
diff options
context:
space:
mode:
Diffstat (limited to 'checks')
-rw-r--r--checks/check.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/checks/check.cpp b/checks/check.cpp
index 48c91504a..678cf4b09 100644
--- a/checks/check.cpp
+++ b/checks/check.cpp
@@ -122,7 +122,7 @@ int main(int argc, char* argv[])
if(opts.is_set("validate") || opts.is_set("test"))
{
- run_test_suite(rng);
+ return run_test_suite(rng);
}
if(opts.is_set("bench-algo") ||
opts.is_set("benchmark") ||
@@ -187,10 +187,12 @@ int main(int argc, char* argv[])
catch(std::exception& e)
{
std::cerr << "Exception: " << e.what() << std::endl;
+ return 1;
}
catch(...)
{
std::cerr << "Unknown (...) exception caught" << std::endl;
+ return 1;
}
return 0;