Changeset View
Changeset View
Standalone View
Standalone View
src/test/util_tests.cpp
Show All 30 Lines | do { | ||||
LOCK(cs); | LOCK(cs); | ||||
break; | break; | ||||
BOOST_ERROR("break was swallowed!"); | BOOST_ERROR("break was swallowed!"); | ||||
} while (0); | } while (0); | ||||
do { | do { | ||||
TRY_LOCK(cs, lockTest); | TRY_LOCK(cs, lockTest); | ||||
if (lockTest) break; | if (lockTest) { | ||||
// Needed to suppress "Test case [...] did not check any assertions" | |||||
BOOST_CHECK(true); | |||||
break; | |||||
} | |||||
BOOST_ERROR("break was swallowed!"); | BOOST_ERROR("break was swallowed!"); | ||||
} while (0); | } while (0); | ||||
} | } | ||||
static const uint8_t ParseHex_expected[65] = { | static const uint8_t ParseHex_expected[65] = { | ||||
0x04, 0x67, 0x8a, 0xfd, 0xb0, 0xfe, 0x55, 0x48, 0x27, 0x19, 0x67, | 0x04, 0x67, 0x8a, 0xfd, 0xb0, 0xfe, 0x55, 0x48, 0x27, 0x19, 0x67, | ||||
0xf1, 0xa6, 0x71, 0x30, 0xb7, 0x10, 0x5c, 0xd6, 0xa8, 0x28, 0xe0, | 0xf1, 0xa6, 0x71, 0x30, 0xb7, 0x10, 0x5c, 0xd6, 0xa8, 0x28, 0xe0, | ||||
▲ Show 20 Lines • Show All 1,437 Lines • Show Last 20 Lines |