diff options
author | Jack Lloyd <[email protected]> | 2015-08-03 01:04:31 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2015-08-03 01:04:31 -0400 |
commit | ec6878b6ff74ad1c5d7b5bfa3eef531eaaeb1bdd (patch) | |
tree | 023801504bf0ca5e233b7d19d49c9a5863520084 /src/tests | |
parent | eef372981e037d5f488da9edb473311709875c6b (diff) |
Fix for minimized builds
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/test_fuzz.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/tests/test_fuzz.cpp b/src/tests/test_fuzz.cpp index f53994c26..a44110f24 100644 --- a/src/tests/test_fuzz.cpp +++ b/src/tests/test_fuzz.cpp @@ -5,20 +5,28 @@ */ #include "tests.h" +#include <chrono> +#include <iostream> + +#if defined(BOTAN_HAS_X509_CERTIFICATES) + #include <botan/x509cert.h> #include <botan/x509_crl.h> #include <botan/internal/filesystem.h> #include <botan/base64.h> -#include <chrono> -#include <iostream> + +#endif namespace { size_t test_x509_fuzz() { - const std::string fuzz_data = TEST_DATA_DIR "/fuzz"; + size_t fails = 0; - size_t tests = 0, fails = 0; +#if defined(BOTAN_HAS_X509_CERTIFICATES) + + size_t tests = 0; + const std::string fuzz_data = TEST_DATA_DIR "/fuzz"; for(auto vec: Botan::get_files_recursive(fuzz_data + "/x509")) { @@ -45,6 +53,7 @@ size_t test_x509_fuzz() } test_report("Fuzz Checks", tests, fails); +#endif return fails; } |