diff options
-rw-r--r-- | checks/validate.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/checks/validate.cpp b/checks/validate.cpp index 7ae2fba29..19032e332 100644 --- a/checks/validate.cpp +++ b/checks/validate.cpp @@ -449,6 +449,7 @@ bool failed_test(const std::string& algo, const auto results = algorithm_kat_detailed(algo, vars, af); + bool failure = false; if(results.size()) { for(auto i : results) @@ -457,13 +458,13 @@ bool failed_test(const std::string& algo, { std::cout << algo << " test with provider " << i.first << " failed - " << i.second << "\n"; - return true; + failure = true; } } - - return false; // OK } + return failure; + const std::string in = params[0]; const std::string expected = params[1]; |