From 6514ba9a780d6267ab672e5e14119458d4313bae Mon Sep 17 00:00:00 2001 From: weidai Date: Mon, 17 Jul 2006 14:49:51 +0000 Subject: additional AES test vectors git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@227 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- datatest.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'datatest.cpp') 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; -- cgit v1.2.1