Skip to content

Commit

Permalink
[FIXUP] for "cmake: Build test_bitcoin executable"
Browse files Browse the repository at this point in the history
Otherwise, the ctest command fails when building with MSVC on Windows.
  • Loading branch information
hebasto committed Jul 10, 2023
1 parent f2dbb17 commit 31e4e62
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/compilerbug_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@

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)
Expand Down

0 comments on commit 31e4e62

Please sign in to comment.