Fix watchdog test timing and run hardware regression fixtures in CI
Arm the test watchdog through initial loop service and assert both recovery boundaries. Update cooperative contact negative controls for the current background APIs and run the existing USB, contact persistence, and startup regressions in Actions. Validation: 1762 native tests, 48 added-workflow fixture tests, and 18 related persistence/logging checks passed locally.
This commit is contained in:
1 parent
a12f8605e5
commit
265ed6ccc9
3 files changed
+39
-9
No files matched your search
@@ -1040,10 +1040,27 @@ TEST(Dispatcher, RadioOutsideReceiveModeEscalatesOnSecondAttempt) {
|
||||
TestDispatcher dispatcher(radio, clock, manager);
|
||||
dispatcher.begin();
|
||||
|
||||
// The non-RX watchdog starts when loop() first services the radio.
|
||||
dispatcher.loop();
|
||||
EXPECT_EQ(0, radio.soft_recoveries);
|
||||
EXPECT_EQ(0, radio.hard_recoveries);
|
||||
EXPECT_EQ(0, dispatcher.getErrFlags() & ERR_EVENT_STARTRX_TIMEOUT);
|
||||
|
||||
clock.now = 8000;
|
||||
dispatcher.loop();
|
||||
EXPECT_EQ(0, radio.soft_recoveries);
|
||||
EXPECT_EQ(0, radio.hard_recoveries);
|
||||
|
||||
clock.now = 8001;
|
||||
dispatcher.loop();
|
||||
EXPECT_EQ(1, radio.soft_recoveries);
|
||||
EXPECT_EQ(0, radio.hard_recoveries);
|
||||
EXPECT_NE(0, dispatcher.getErrFlags() & ERR_EVENT_STARTRX_TIMEOUT);
|
||||
|
||||
clock.now = 16001;
|
||||
dispatcher.loop();
|
||||
EXPECT_EQ(1, radio.soft_recoveries);
|
||||
EXPECT_EQ(0, radio.hard_recoveries);
|
||||
|
||||
clock.now = 16002;
|
||||
dispatcher.loop();
|
||||
|
||||
Reference in new issue
Block a user