mirror of
https://github.com/google/googletest.git
synced 2024-12-27 18:31:21 +08:00
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
This commit is contained in:
parent
eb80f759d5
commit
530d5c8c84
@ -1751,6 +1751,7 @@ class TestWithParam : public Test, public WithParamInterface<T> {};
|
|||||||
// generic name and clashes with some other libraries.
|
// generic name and clashes with some other libraries.
|
||||||
#if !(defined(GTEST_DONT_DEFINE_FAIL) && GTEST_DONT_DEFINE_FAIL)
|
#if !(defined(GTEST_DONT_DEFINE_FAIL) && GTEST_DONT_DEFINE_FAIL)
|
||||||
#define FAIL() GTEST_FAIL()
|
#define FAIL() GTEST_FAIL()
|
||||||
|
#define FAIL_AT(file, line) GTEST_FAIL_AT(file, line)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Generates a success with a generic message.
|
// Generates a success with a generic message.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user