Skip to content

Commit 44c0364

Browse files
Merge pull request #4039 from zloylos:fix-return-fail-at-4038
PiperOrigin-RevId: 487516335 Change-Id: Ib475750586fc7e6ab01729f65253e3a86916b994
2 parents 6b63c98 + 6f14952 commit 44c0364

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

googletest/include/gtest/gtest.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1735,9 +1735,9 @@ class TestWithParam : public Test, public WithParamInterface<T> {};
17351735
#define GTEST_FAIL() GTEST_FATAL_FAILURE_("Failed")
17361736

17371737
// Like GTEST_FAIL(), but at the given source file location.
1738-
#define GTEST_FAIL_AT(file, line) \
1739-
GTEST_MESSAGE_AT_(file, line, "Failed", \
1740-
::testing::TestPartResult::kFatalFailure)
1738+
#define GTEST_FAIL_AT(file, line) \
1739+
return GTEST_MESSAGE_AT_(file, line, "Failed", \
1740+
::testing::TestPartResult::kFatalFailure)
17411741

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

0 commit comments

Comments
 (0)