update catch2 to v3.6.0

custom
jacqueline 10 months ago
parent ed44606162
commit 1daa1e9b0f
  1. 2
      lib/catch2/CMakeLists.txt
  2. 11638
      lib/catch2/catch2.cpp
  3. 25443
      lib/catch2/include/catch2/catch.hpp
  4. 4
      src/drivers/test/test_storage.cpp

@ -2,6 +2,6 @@
# #
# SPDX-License-Identifier: GPL-3.0-only # SPDX-License-Identifier: GPL-3.0-only
idf_component_register(SRCS "catch_runner.cpp" INCLUDE_DIRS "include") idf_component_register(SRCS catch2.cpp catch_runner.cpp INCLUDE_DIRS include)
target_compile_options(${COMPONENT_LIB} PUBLIC -DCATCH_CONFIG_NO_POSIX_SIGNALS -DCATCH_CONFIG_FAST_COMPILE -DCATCH_CONFIG_ENABLE_BENCHMARKING) target_compile_options(${COMPONENT_LIB} PUBLIC -DCATCH_CONFIG_NO_POSIX_SIGNALS -DCATCH_CONFIG_FAST_COMPILE -DCATCH_CONFIG_ENABLE_BENCHMARKING)

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -33,7 +33,7 @@ TEST_CASE("sd card storage", "[integration]") {
if (gpios->Get(IGpios::Pin::kSdCardDetect)) { if (gpios->Get(IGpios::Pin::kSdCardDetect)) {
// Skip if nothing is inserted. // Skip if nothing is inserted.
INFO("no sd card detected; skipping storage tests"); SKIP("no sd card detected; skipping storage tests");
return; return;
} }
@ -67,7 +67,7 @@ TEST_CASE("sd card storage", "[integration]") {
REQUIRE(dir != nullptr); REQUIRE(dir != nullptr);
bool found_test_file = false; bool found_test_file = false;
while (ent = readdir(dir)) { while ((ent = readdir(dir))) {
if (ent->d_name == kTestFilename) { if (ent->d_name == kTestFilename) {
found_test_file = true; found_test_file = true;
} }

Loading…
Cancel
Save