From 16ac37318b38c45ec4001a9a7f0866c48bf31e56 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Sat, 20 Jul 2024 00:16:17 +0100 Subject: [PATCH 1/2] fixup! cmake: Build `test_bitcoin` executable --- src/test/compilerbug_tests.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/test/compilerbug_tests.cpp b/src/test/compilerbug_tests.cpp index 4492a9686c766..ef558c1e32269 100644 --- a/src/test/compilerbug_tests.cpp +++ b/src/test/compilerbug_tests.cpp @@ -6,13 +6,6 @@ BOOST_AUTO_TEST_SUITE(compilerbug_tests) -// At least one test case is required to avoid the "Test setup error: no test -// cases matching filter or all test cases were disabled" errror. -BOOST_AUTO_TEST_CASE(dummy) -{ - BOOST_CHECK(true); -} - #if defined(__GNUC__) // This block will also be built under clang, which is fine (as it supports noinline) void __attribute__ ((noinline)) set_one(unsigned char* ptr) From 4d7797196bb3304bcf5eaf5c87e0b359c4f562f7 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Sat, 20 Jul 2024 00:17:47 +0100 Subject: [PATCH 2/2] fixup! cmake: Create test suite for `ctest` --- cmake/tests.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/tests.cmake b/cmake/tests.cmake index 7f597262c82d0..57a004de0aba0 100644 --- a/cmake/tests.cmake +++ b/cmake/tests.cmake @@ -39,6 +39,9 @@ if(TARGET test_bitcoin) add_test(NAME ${test_suite_name} COMMAND test_bitcoin --run_test=${test_suite_name} --catch_system_error=no ) + set_property(TEST ${test_suite_name} PROPERTY + SKIP_REGULAR_EXPRESSION "no test cases matching filter" "Skipping" + ) endif() endfunction()