1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Changed 'ASSERT_' in unit tests to 'EXPECT_' for more comprehensive failure reporting.

This commit is contained in:
Michael Keller 2019-12-27 14:29:10 +13:00
parent 4ba9a6ca75
commit 71661acde2
4 changed files with 78 additions and 78 deletions

View file

@ -34,7 +34,7 @@ extern "C" {
TEST(TimerDefinitionTest, Test_counterMismatch) {
for (const timerHardware_t &t : timerHardware)
ASSERT_EQ(&t - timerHardware, t.def_tim_counter)
EXPECT_EQ(&t - timerHardware, t.def_tim_counter)
<< "Counter mismatch in timerHardware (in target.c) at position "
<< &t - timerHardware << "; the array may have uninitialized "
<< "trailing elements. This happens when USABLE_TIMER_CHANNEL_COUNT"