aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2023-12-12 17:40:15 -0800
committerCopybara-Service <copybara-worker@google.com>2023-12-12 17:40:45 -0800
commit530d5c8c84abd2a46f38583ee817743c9b3a42b4 (patch)
tree856df41bc6015eef801394b461638faef31ef5ee
parenteb80f759d595874a5e905a3342bd8e2af4c0a12d (diff)
downloadgoogletest-530d5c8c84abd2a46f38583ee817743c9b3a42b4.tar.gz
Add `FAIL_AT` macro variant of `FAIL` matching `ADD_FAILURE`, `ADD_FAILURE_AT`
`FAIL_AT` is shorthand for `GTEST_FAIL_AT` like `FAIL` is for `GTEST_FAIL`. PiperOrigin-RevId: 590393926 Change-Id: I68263af8fa2f98ca0bbef509d475c84e22068018
-rw-r--r--googletest/include/gtest/gtest.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/googletest/include/gtest/gtest.h b/googletest/include/gtest/gtest.h
index a932e686..45400fd0 100644
--- a/googletest/include/gtest/gtest.h
+++ b/googletest/include/gtest/gtest.h
@@ -1751,6 +1751,7 @@ class TestWithParam : public Test, public WithParamInterface<T> {};
// generic name and clashes with some other libraries.
#if !(defined(GTEST_DONT_DEFINE_FAIL) && GTEST_DONT_DEFINE_FAIL)
#define FAIL() GTEST_FAIL()
+#define FAIL_AT(file, line) GTEST_FAIL_AT(file, line)
#endif
// Generates a success with a generic message.