aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2013-03-27 16:49:27 +0000
committerlloyd <[email protected]>2013-03-27 16:49:27 +0000
commite5854b541267730884d901431b950362f796eb10 (patch)
treef38d87f0b96e15a9e07a0775c06d43ce84f2705e
parent91840883da6009ee17c81749e5077e610532654d (diff)
Report results from all providers if more than one failure
-rw-r--r--checks/validate.cpp7
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];