summaryrefslogtreecommitdiff
path: root/validat1.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-05-04 19:11:24 -0400
committerJeffrey Walton <noloader@gmail.com>2017-05-04 19:11:24 -0400
commit5c1de7b5a5676a136e00eb2c2a8fcc18aded5bb9 (patch)
treec88d146217f3f3d22b71b8c395824f25152dfe2b /validat1.cpp
parent9614307ab7f4a4a420b665ac6c798d80c96cdaad (diff)
downloadcryptopp-git-5c1de7b5a5676a136e00eb2c2a8fcc18aded5bb9.tar.gz
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.
Diffstat (limited to 'validat1.cpp')
-rw-r--r--validat1.cpp4
1 files changed, 2 insertions, 2 deletions
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();