From 5c1de7b5a5676a136e00eb2c2a8fcc18aded5bb9 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 4 May 2017 19:11:24 -0400 Subject: Add variable block size support to test and benchmarks CRYPTOPP_COVERAGE was added at 9614307ab7f4a4a4 to increase code coverage support. This commit enables additional validation routines when CRYPTOPP_COVERAGE is in effect. --- validat1.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'validat1.cpp') diff --git a/validat1.cpp b/validat1.cpp index 5b6c5bc0..be82172b 100644 --- a/validat1.cpp +++ b/validat1.cpp @@ -78,7 +78,7 @@ bool ValidateAll(bool thorough) pass=TestRDSEED() && pass; #endif -#if defined(CRYPTOPP_DEBUG) && !defined(CRYPTOPP_IMPORTS) +#if (defined(CRYPTOPP_DEBUG) || defined(CRYPTOPP_COVERAGE)) && !defined(CRYPTOPP_IMPORTS) // http://github.com/weidai11/cryptopp/issues/92 pass=TestSecBlock() && pass; // http://github.com/weidai11/cryptopp/issues/336 @@ -229,7 +229,7 @@ bool TestSettings() pass = false; } -#if defined(CRYPTOPP_DEBUG) && !defined(CRYPTOPP_IMPORTS) +#if (defined(CRYPTOPP_DEBUG) || defined(CRYPTOPP_COVERAGE)) && !defined(CRYPTOPP_IMPORTS) // App and library versions, http://github.com/weidai11/cryptopp/issues/371 const int v1 = LibraryVersion(); const int v2 = HeaderVersion(); -- cgit v1.2.1