| 666 | |
| 667 | |
| 668 | inline ::testing::AssertionResult AwaitAssertExitStatusNe( |
| 669 | const char* expectedExpr, |
| 670 | const char* actualExpr, |
| 671 | const char* durationExpr, |
| 672 | const int expected, |
| 673 | const process::Future<Option<int>>& actual, |
| 674 | const Duration& duration) |
| 675 | { |
| 676 | const ::testing::AssertionResult result = |
| 677 | AwaitAssertExited(actualExpr, durationExpr, actual, duration); |
| 678 | |
| 679 | if (result) { |
| 680 | CHECK_READY(actual); |
| 681 | CHECK_SOME(actual.get()); |
| 682 | return AssertExitStatusNe( |
| 683 | expectedExpr, |
| 684 | strings::join("(", actualExpr, ")->get()").c_str(), |
| 685 | expected, |
| 686 | actual->get()); |
| 687 | } |
| 688 | |
| 689 | return result; |
| 690 | } |
| 691 | |
| 692 | |
| 693 | #define AWAIT_ASSERT_WEXITSTATUS_NE_FOR(expected, actual, duration) \ |
nothing calls this directly
no test coverage detected