Skip to content

Commit

Permalink
Add FAIL_AT macro variant of FAIL matching ADD_FAILURE, `ADD_FA…
Browse files Browse the repository at this point in the history
…ILURE_AT`

`FAIL_AT` is shorthand for `GTEST_FAIL_AT` like `FAIL` is for `GTEST_FAIL`.

PiperOrigin-RevId: 590393926
Change-Id: I68263af8fa2f98ca0bbef509d475c84e22068018
  • Loading branch information
Abseil Team authored and Copybara-Service committed Dec 13, 2023
1 parent eb80f75 commit 530d5c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions googletest/include/gtest/gtest.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 530d5c8

Please sign in to comment.