From a711578f9a1f44cbee0cd5a7e9ea4ae51a50fa93 Mon Sep 17 00:00:00 2001 From: "Node.js GitHub Bot" Date: Sun, 17 Dec 2023 00:26:30 +0000 Subject: [PATCH] deps: update googletest to 530d5c8 --- 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(