Skip to content

Commit

Permalink
Add return for GTEST_FAIL_AT
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Hananein committed Oct 15, 2022
1 parent a9b2f04 commit 6f14952
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions googletest/include/gtest/gtest.h
Original file line number Diff line number Diff line change
Expand Up @@ -1735,8 +1735,8 @@ class TestWithParam : public Test, public WithParamInterface<T> {};

// Like GTEST_FAIL(), but at the given source file location.
#define GTEST_FAIL_AT(file, line) \
GTEST_MESSAGE_AT_(file, line, "Failed", \
::testing::TestPartResult::kFatalFailure)
return GTEST_MESSAGE_AT_(file, line, "Failed", \
::testing::TestPartResult::kFatalFailure)

// Define this macro to 1 to omit the definition of FAIL(), which is a
// generic name and clashes with some other libraries.
Expand Down

0 comments on commit 6f14952

Please sign in to comment.