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

Merge pull request #7231 from mikeller/optimise_timer_tests

Made timer tests respect 'USE_TIMER_MGMT'.
This commit is contained in:
Michael Keller 2018-12-19 15:52:04 +13:00 committed by GitHub
commit c9788f1831
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View file

@ -39,6 +39,7 @@ TEST(TimerDefinitionTest, Test_counterMismatch) {
<< " array element appears to be " << &t - timerHardware - 1 << '.';
}
#if !defined(USE_TIMER_MGMT)
TEST(TimerDefinitionTest, Test_duplicatePin) {
std::set<TestPinEnum> usedPins;
for (const timerHardware_t &t : timerHardware)
@ -87,6 +88,7 @@ TEST(TimerDefinitionTest, Test_usedTimers)
<< "USED_TIMERS definition based on timerHardware:" << std::endl
<< writeUsedTimers(expected) << std::endl;
}
#endif
// STUBS