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:
parent
4ba9a6ca75
commit
71661acde2
4 changed files with 78 additions and 78 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue