| 593 | #if CPPUTEST_USE_STD_CPP_LIB |
| 594 | |
| 595 | void Utest::run() |
| 596 | { |
| 597 | UtestShell* current = UtestShell::getCurrent(); |
| 598 | int jumpResult = 0; |
| 599 | try { |
| 600 | current->printVeryVerbose("\n-------- before setup: "); |
| 601 | jumpResult = PlatformSpecificSetJmp(helperDoTestSetup, this); |
| 602 | current->printVeryVerbose("\n-------- after setup: "); |
| 603 | |
| 604 | if (jumpResult) { |
| 605 | current->printVeryVerbose("\n---------- before body: "); |
| 606 | PlatformSpecificSetJmp(helperDoTestBody, this); |
| 607 | current->printVeryVerbose("\n---------- after body: "); |
| 608 | } |
| 609 | } |
| 610 | catch (CppUTestFailedException&) |
| 611 | { |
| 612 | PlatformSpecificRestoreJumpBuffer(); |
| 613 | } |
| 614 | |
| 615 | try { |
| 616 | current->printVeryVerbose("\n-------- before teardown: "); |
| 617 | PlatformSpecificSetJmp(helperDoTestTeardown, this); |
| 618 | current->printVeryVerbose("\n-------- after teardown: "); |
| 619 | } |
| 620 | catch (CppUTestFailedException&) |
| 621 | { |
| 622 | PlatformSpecificRestoreJumpBuffer(); |
| 623 | } |
| 624 | |
| 625 | } |
| 626 | #else |
| 627 | |
| 628 | void Utest::run() |
no test coverage detected