diff options
| author | Martin Hořeňovský | 2020-02-03 18:08:15 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-02-06 11:36:46 +0100 |
| commit | cd7d7a1c67f1b915d883fa7979cbd2162dde7d46 (patch) | |
| tree | 671c0f0cd2cae0273a91d2e7b8b2bac3ae1a9a8e /tests/SelfTest/UsageTests/Benchmark.tests.cpp | |
| parent | 86e19b952dc4a4a2526037602abcc96a80607acc (diff) | |
| download | catch3-cd7d7a1c67f1b915d883fa7979cbd2162dde7d46.tar.gz | |
Remove CATCH_CONFIG_ENABLE_BENCHMARKING compilation toggle
Now that Catch2 is a proper library, we can always build the full
library (comparatively minor slowdown) and the user can avoid
including benchmarking headers to avoid the compilation slowdown.
Diffstat (limited to 'tests/SelfTest/UsageTests/Benchmark.tests.cpp')
| -rw-r--r-- | tests/SelfTest/UsageTests/Benchmark.tests.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/SelfTest/UsageTests/Benchmark.tests.cpp b/tests/SelfTest/UsageTests/Benchmark.tests.cpp index b353db49..fe2d736c 100644 --- a/tests/SelfTest/UsageTests/Benchmark.tests.cpp +++ b/tests/SelfTest/UsageTests/Benchmark.tests.cpp @@ -1,8 +1,9 @@ -#include <catch2/catch.hpp> +#include <catch2/catch_test_macros.hpp> +#include <catch2/benchmark/catch_benchmark.hpp> +#include <catch2/catch_generators_specific.hpp> #include <map> -#if defined(CATCH_CONFIG_ENABLE_BENCHMARKING) namespace { std::uint64_t Fibonacci(std::uint64_t number) { return number < 2 ? 1 : Fibonacci(number - 1) + Fibonacci(number - 2); @@ -127,4 +128,3 @@ TEST_CASE("Benchmark containers", "[!benchmark]") { } } } -#endif // CATCH_CONFIG_ENABLE_BENCHMARKING |