summaryrefslogtreecommitdiff
path: root/datatest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'datatest.cpp')
-rw-r--r--datatest.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/datatest.cpp b/datatest.cpp
index 9468b480..1cc27e5c 100644
--- a/datatest.cpp
+++ b/datatest.cpp
@@ -16,6 +16,8 @@
#include "smartptr.h"
#include "validate.h"
#include "stdcpp.h"
+#include "trap.h"
+
#include <iostream>
#include <sstream>
@@ -934,9 +936,12 @@ bool RunTestDataFile(const char *filename, const NameValuePairs &overrideParamet
s_thorough = thorough;
unsigned int totalTests = 0, failedTests = 0;
TestDataFile((filename ? filename : ""), overrideParameters, totalTests, failedTests);
+
std::cout << std::dec << "\nTests complete. Total tests = " << totalTests << ". Failed tests = " << failedTests << "." << std::endl;
if (failedTests != 0)
std::cout << "SOME TESTS FAILED!\n";
+
+ CRYPTOPP_ASSERT(failedTests == 0);
return failedTests == 0;
}