aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/tests.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-09-17 17:18:10 -0400
committerJack Lloyd <[email protected]>2016-10-07 22:21:37 -0400
commit2fdb81309f5d5dc138950facfdd94a2593236321 (patch)
tree0d5c976ce84dc23e7e8e8014b4021303554b9868 /src/tests/tests.cpp
parentfc03b27a44e83901a6fe319d783e2af41e162367 (diff)
Add missing try/catch blocks.
Document that create_*_op is public but not for public consumption.
Diffstat (limited to 'src/tests/tests.cpp')
-rw-r--r--src/tests/tests.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/tests/tests.cpp b/src/tests/tests.cpp
index 1bb8b7303..13094f5dc 100644
--- a/src/tests/tests.cpp
+++ b/src/tests/tests.cpp
@@ -867,8 +867,16 @@ std::vector<Test::Result> Text_Based_Test::run()
}
}
- std::vector<Test::Result> final_tests = run_final_tests();
- results.insert(results.end(), final_tests.begin(), final_tests.end());
+ try
+ {
+ std::vector<Test::Result> final_tests = run_final_tests();
+ results.insert(results.end(), final_tests.begin(), final_tests.end());
+ }
+ catch(std::exception& e)
+ {
+ results.push_back(Test::Result::Failure(header_or_name,
+ "run_final_tests exception " + std::string(e.what())));
+ }
return results;
}