diff options
Diffstat (limited to 'test/util/posix_error.h')
-rw-r--r-- | test/util/posix_error.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/util/posix_error.h b/test/util/posix_error.h index 27557ad44..9ca09b77c 100644 --- a/test/util/posix_error.h +++ b/test/util/posix_error.h @@ -438,6 +438,13 @@ IsPosixErrorOkAndHolds(InnerMatcher&& inner_matcher) { std::move(_expr_result).ValueOrDie(); \ }) +#define EXPECT_NO_ERRNO_AND_VALUE(expr) \ + ({ \ + auto _expr_result = (expr); \ + EXPECT_NO_ERRNO(_expr_result); \ + std::move(_expr_result).ValueOrDie(); \ + }) + } // namespace testing } // namespace gvisor |