| 602 | */ |
| 603 | |
| 604 | void 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 |