From b52d9be85c654f1c307307f5d0d257a7d6c7187a Mon Sep 17 00:00:00 2001 From: weidai Date: Mon, 17 Jul 2006 14:49:51 +0000 Subject: additional AES test vectors --- datatest.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'datatest.cpp') 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; -- cgit v1.2.1