From 1674ceaf0570b9a406c1dafe919d461fbca9cecc Mon Sep 17 00:00:00 2001 From: "Node.js GitHub Bot" Date: Wed, 20 Dec 2023 14:00:27 +0200 Subject: [PATCH] deps: update googletest to 530d5c8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/51191 Reviewed-By: Luigi Pinca Reviewed-By: Marco Ippolito Reviewed-By: Tobias Nießen --- deps/googletest/include/gtest/gtest.h | 1 + deps/googletest/src/gtest.cc | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/deps/googletest/include/gtest/gtest.h b/deps/googletest/include/gtest/gtest.h index a932e686af4f44..45400fd0b2ccd7 100644 --- a/deps/googletest/include/gtest/gtest.h +++ b/deps/googletest/include/gtest/gtest.h @@ -1751,6 +1751,7 @@ class TestWithParam : public Test, public WithParamInterface {}; // 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. diff --git a/deps/googletest/src/gtest.cc b/deps/googletest/src/gtest.cc index 85d45b58e37c19..479b2ee31f819d 100644 --- a/deps/googletest/src/gtest.cc +++ b/deps/googletest/src/gtest.cc @@ -6203,8 +6203,8 @@ void UnitTestImpl::ListTestsMatchingFilter() { #if GTEST_HAS_FILE_SYSTEM const std::string& output_format = UnitTestOptions::GetOutputFormat(); if (output_format == "xml" || output_format == "json") { - FILE* fileout = OpenFileForWriting( - UnitTestOptions::GetAbsolutePathToOutputFile().c_str()); + FILE* fileout = + OpenFileForWriting(UnitTestOptions::GetAbsolutePathToOutputFile()); std::stringstream stream; if (output_format == "xml") { XmlUnitTestResultPrinter(