diff options
author | weidai <weidai11@users.noreply.github.com> | 2006-07-17 14:49:51 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2006-07-17 14:49:51 +0000 |
commit | b52d9be85c654f1c307307f5d0d257a7d6c7187a (patch) | |
tree | 3ccd3c99334f15e1c2292eb39df3661d48e37f46 /datatest.cpp | |
parent | c8e2f8959414846031634477b2a0614434843ca3 (diff) | |
download | cryptopp-git-b52d9be85c654f1c307307f5d0d257a7d6c7187a.tar.gz |
additional AES test vectors
Diffstat (limited to 'datatest.cpp')
-rw-r--r-- | datatest.cpp | 2 |
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; |