diff options
| author | practicalswift <[email protected]> | 2019-03-29 15:22:48 +0100 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2019-03-29 15:31:48 +0100 |
| commit | 0aef39d0678ec2f26633028d44eea0ba0087e7c0 (patch) | |
| tree | 95931da0135f233967e948c86236b3e71779fe42 /src/test/util_tests.cpp | |
| parent | Avoid repeated log messages in tests by connecting to signal handlers (Thread... (diff) | |
| download | discoin-0aef39d0678ec2f26633028d44eea0ba0087e7c0.tar.xz discoin-0aef39d0678ec2f26633028d44eea0ba0087e7c0.zip | |
Silence "Test case [...] did not check any assertions" warnings when running "test_bitcoin --log_level=test_suite"
Diffstat (limited to 'src/test/util_tests.cpp')
| -rw-r--r-- | src/test/util_tests.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/util_tests.cpp b/src/test/util_tests.cpp index e106bdeb6..5cf5fa417 100644 --- a/src/test/util_tests.cpp +++ b/src/test/util_tests.cpp @@ -36,8 +36,10 @@ BOOST_AUTO_TEST_CASE(util_criticalsection) do { TRY_LOCK(cs, lockTest); - if (lockTest) + if (lockTest) { + BOOST_CHECK(true); // Needed to suppress "Test case [...] did not check any assertions" break; + } BOOST_ERROR("break was swallowed!"); } while(0); |