Skip to content

Commit

Permalink
test: Drop no longer needed workarounds
Browse files Browse the repository at this point in the history
`ctest` skips "no test cases matching filter" tests gracefully.
  • Loading branch information
hebasto committed Sep 8, 2024
1 parent a5fa907 commit 5c80192
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
2 changes: 1 addition & 1 deletion src/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ function(add_boost_test source_file)
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"
SKIP_REGULAR_EXPRESSION "no test cases matching filter"
)
endif()
endfunction()
Expand Down
8 changes: 0 additions & 8 deletions src/test/raii_event_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,6 @@ BOOST_AUTO_TEST_CASE(raii_event_order)
event_set_mem_functions(malloc, realloc, free);
}

#else

BOOST_AUTO_TEST_CASE(raii_event_tests_SKIPPED)
{
// It would probably be ideal to report skipped, but boost::test doesn't seem to make that practical (at least not in versions available with common distros)
BOOST_TEST_MESSAGE("Skipping raii_event_tess: libevent doesn't support event_set_mem_functions");
}

#endif // EVENT_SET_MEM_FUNCTIONS_IMPLEMENTED

BOOST_AUTO_TEST_SUITE_END()
7 changes: 0 additions & 7 deletions src/test/system_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@

BOOST_FIXTURE_TEST_SUITE(system_tests, BasicTestingSetup)

// At least one test is required (in case ENABLE_EXTERNAL_SIGNER is not defined).
// Workaround for https://github.com/bitcoin/bitcoin/issues/19128
BOOST_AUTO_TEST_CASE(dummy)
{
BOOST_CHECK(true);
}

#ifdef ENABLE_EXTERNAL_SIGNER

BOOST_AUTO_TEST_CASE(run_command)
Expand Down

0 comments on commit 5c80192

Please sign in to comment.