deps: update googletest to 065127f1e4b46c5f14fc73cf8d323c221f9dc68e · nodejs/node@1594a78 · GitHub
Skip to content

Commit 1594a78

Browse files
nodejs-github-botmarco-ippolito
authored andcommitted
deps: update googletest to 065127f1e4b46c5f14fc73cf8d323c221f9dc68e
PR-URL: #61055 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
1 parent 7fa2ee1 commit 1594a78

14 files changed

Lines changed: 173 additions & 163 deletions

deps/googletest/include/gtest/gtest-assertion-result.h

Lines changed: 1 addition & 1 deletion

deps/googletest/include/gtest/gtest-death-test.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ GTEST_API_ bool InDeathTestChild();
192192
// Two predicate classes that can be used in {ASSERT,EXPECT}_EXIT*:
193193

194194
// Tests that an exit code describes a normal exit with a given exit code.
195-
class GTEST_API_ ExitedWithCode {
195+
class GTEST_API_ [[nodiscard]] ExitedWithCode {
196196
public:
197197
explicit ExitedWithCode(int exit_code);
198198
ExitedWithCode(const ExitedWithCode&) = default;
@@ -206,7 +206,7 @@ class GTEST_API_ ExitedWithCode {
206206
#if !defined(GTEST_OS_WINDOWS) && !defined(GTEST_OS_FUCHSIA)
207207
// Tests that an exit code describes an exit due to termination by a
208208
// given signal.
209-
class GTEST_API_ KilledBySignal {
209+
class GTEST_API_ [[nodiscard]] KilledBySignal {
210210
public:
211211
explicit KilledBySignal(int signum);
212212
bool operator()(int exit_status) const;
@@ -317,7 +317,7 @@ class GTEST_API_ KilledBySignal {
317317
GTEST_LOG_(WARNING) << "Death tests are not supported on this platform.\n" \
318318
<< "Statement '" #statement "' cannot be verified."; \
319319
} else if (::testing::internal::AlwaysFalse()) { \
320-
::testing::internal::MakeDeathTestMatcher(regex_or_matcher); \
320+
(void)::testing::internal::MakeDeathTestMatcher(regex_or_matcher); \
321321
GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \
322322
terminator; \
323323
} else \

deps/googletest/include/gtest/gtest-matchers.h

Lines changed: 26 additions & 23 deletions

0 commit comments

Comments
 (0)