summaryrefslogtreecommitdiff
path: root/datatest.cpp
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2006-07-17 14:49:51 +0000
committerweidai <weidai11@users.noreply.github.com>2006-07-17 14:49:51 +0000
commitb52d9be85c654f1c307307f5d0d257a7d6c7187a (patch)
tree3ccd3c99334f15e1c2292eb39df3661d48e37f46 /datatest.cpp
parentc8e2f8959414846031634477b2a0614434843ca3 (diff)
downloadcryptopp-git-b52d9be85c654f1c307307f5d0d257a7d6c7187a.tar.gz
additional AES test vectors
Diffstat (limited to 'datatest.cpp')
-rw-r--r--datatest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/datatest.cpp b/datatest.cpp
index cd431750..79609e88 100644
--- a/datatest.cpp
+++ b/datatest.cpp
@@ -409,6 +409,8 @@ void OutputNameValuePairs(const NameValuePairs &v)
void TestDataFile(const std::string &filename, unsigned int &totalTests, unsigned int &failedTests)
{
std::ifstream file(filename.c_str());
+ if (!file.good())
+ throw Exception(Exception::OTHER_ERROR, "Can not open file " + filename + " for reading");
TestData v;
s_currentTestData = &v;
std::string name, value, lastAlgName;