Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/tests/SelfTest/UsageTests
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-02-03 18:08:15 +0100
committerMartin Hořeňovský2020-02-06 11:36:46 +0100
commitcd7d7a1c67f1b915d883fa7979cbd2162dde7d46 (patch)
tree671c0f0cd2cae0273a91d2e7b8b2bac3ae1a9a8e /tests/SelfTest/UsageTests
parent86e19b952dc4a4a2526037602abcc96a80607acc (diff)
downloadcatch3-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')
-rw-r--r--tests/SelfTest/UsageTests/Benchmark.tests.cpp6
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