Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/google/googletest.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCopybara-Service <copybara-worker@google.com>2022-11-10 17:13:31 +0300
committerCopybara-Service <copybara-worker@google.com>2022-11-10 17:13:31 +0300
commit44c03643cfbc649488a0f437cd18e05f11960d19 (patch)
treedb54cbc5b81e87a3182894ad6c669c1973ddc745
parent6b63c98ac43efc992122f1da12aaf0a0e0658206 (diff)
parent6f149520a19c0bfd6a70075a733a69cd8b03ae94 (diff)
Merge pull request #4039 from zloylos:fix-return-fail-at-4038
PiperOrigin-RevId: 487516335 Change-Id: Ib475750586fc7e6ab01729f65253e3a86916b994
-rw-r--r--googletest/include/gtest/gtest.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/googletest/include/gtest/gtest.h b/googletest/include/gtest/gtest.h
index 55fdc601..ffff8766 100644
--- a/googletest/include/gtest/gtest.h
+++ b/googletest/include/gtest/gtest.h
@@ -1735,9 +1735,9 @@ class TestWithParam : public Test, public WithParamInterface<T> {};
#define GTEST_FAIL() GTEST_FATAL_FAILURE_("Failed")
// 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)
+#define GTEST_FAIL_AT(file, line) \
+ 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.