MCPcopy Create free account
hub / github.com/DISTORTEC/distortos / testStepsRunner

Function testStepsRunner

test/Signals/SignalsCatchingTestCase.cpp:604–622  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602 */
603
604void testStepsRunner(TestStepsRange& testStepsRange, Thread& thread, const SignalInformation* const signalInformation)
605{
606 bool more {true};
607 while (more == true && testStepsRange.size() != 0)
608 {
609 // remove the first element from the range
610 auto& testStep = *testStepsRange.begin();
611 testStepsRange = {testStepsRange.begin() + 1, testStepsRange.end()};
612
613 const auto ret = testStep(sharedSequenceAsserter, testStepsRange, thread, signalInformation);
614 if (ret != 0)
615 sharedSigAtomic = ret;
616
617 more = testStep.shouldExecuteMore();
618 }
619
620 if (more == true)
621 sharedSigAtomic = EINVAL; // function call was not expected
622}
623
624/**
625 * \brief Signal handler

Callers 2

handlerFunction · 0.85
run_Method · 0.85

Calls 4

shouldExecuteMoreMethod · 0.80
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected