summaryrefslogtreecommitdiff
path: root/datatest.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2006-07-17 14:49:51 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2006-07-17 14:49:51 +0000
commit6514ba9a780d6267ab672e5e14119458d4313bae (patch)
tree3ccd3c99334f15e1c2292eb39df3661d48e37f46 /datatest.cpp
parent69fb6c7fd8f5f591b38bb134567ea0786182b0ca (diff)
downloadcryptopp-6514ba9a780d6267ab672e5e14119458d4313bae.tar.gz
additional AES test vectors
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@227 57ff6487-cd31-0410-9ec3-f628ee90f5f0
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 cd43175..79609e8 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;