From e292d9c1263fc74c26b26b9bd6f879ab25cc19ee Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 5 Sep 2008 12:46:18 +0000 Subject: Use the Timer class for all benchmarking --- checks/validate.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'checks/validate.cpp') diff --git a/checks/validate.cpp b/checks/validate.cpp index 5c3aca6d5..8fb225137 100644 --- a/checks/validate.cpp +++ b/checks/validate.cpp @@ -144,9 +144,18 @@ u32bit do_validation_tests(const std::string& filename, } counter++; - bool failed = failed_test(algorithm, substr, - is_extension, should_pass, - section, last_missing, rng); + bool failed = true; // until proven otherwise + + try + { + failed = failed_test(algorithm, substr, + is_extension, should_pass, + section, last_missing, rng); + } + catch(std::exception& e) + { + std::cout << "Exception: " << e.what() << "\n"; + } if(failed && should_pass) { -- cgit v1.2.3