From 20e7a430425f20c939e872c932c29330f8db5422 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Thu, 24 Dec 2015 23:52:43 -0500 Subject: Fix a few clang warnings. Set clang sanitizer flags --- src/tests/main.cpp | 6 ++++-- src/tests/test_rng.h | 2 +- src/tests/tests.h | 1 - 3 files changed, 5 insertions(+), 4 deletions(-) (limited to 'src/tests') diff --git a/src/tests/main.cpp b/src/tests/main.cpp index 692bc41af..57a525dbd 100644 --- a/src/tests/main.cpp +++ b/src/tests/main.cpp @@ -71,7 +71,7 @@ class Test_Runner : public Botan_CLI::Command const size_t threads = get_arg_sz("threads"); const size_t soak_level = get_arg_sz("soak"); const std::string drbg_seed = get_arg("drbg-seed"); - bool log_success = flag_set("log-success"); + const bool log_success = flag_set("log-success"); const std::string data_dir = get_arg_or("data-dir", "src/tests/data"); std::vector req = get_arg_list("suites"); @@ -211,7 +211,9 @@ class Test_Runner : public Botan_CLI::Command for(auto&& test_name : tests_to_run) { auto run_it = [test_name] { - return Botan_Tests::Test::run_test(test_name, false); }; + return Botan_Tests::Test::run_test(test_name, false); + }; + fut_results.push_back(std::async(std::launch::async, run_it)); while(fut_results.size() > threads) diff --git a/src/tests/test_rng.h b/src/tests/test_rng.h index 343356550..83ae9698a 100644 --- a/src/tests/test_rng.h +++ b/src/tests/test_rng.h @@ -32,7 +32,7 @@ class Fixed_Output_RNG : public Botan::RandomNumberGenerator size_t reseed_with_sources(Botan::Entropy_Sources&, size_t, - std::chrono::milliseconds) { return 0; } + std::chrono::milliseconds) override { return 0; } void randomize(uint8_t out[], size_t len) override { diff --git a/src/tests/tests.h b/src/tests/tests.h index e12f5f6de..f98194278 100644 --- a/src/tests/tests.h +++ b/src/tests/tests.h @@ -388,7 +388,6 @@ class Text_Based_Test : public Test std::set m_required_keys; std::set m_optional_keys; std::string m_output_key; - bool m_clear_between_cb = false; bool m_first = true; std::unique_ptr m_cur; -- cgit v1.2.3