Skip to content

Commit 812dbd7

Browse files
nodejs-github-bottargos
authored andcommitted
deps: update googletest to eff443c
PR-URL: #51657 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]> Reviewed-By: Ulises Gascón <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent cb3ae4b commit 812dbd7

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

deps/googletest/src/gtest.cc

+6-7
Original file line numberDiff line numberDiff line change
@@ -3270,6 +3270,7 @@ bool ShouldUseColor(bool stdout_is_tty) {
32703270
term != nullptr && (String::CStringEquals(term, "xterm") ||
32713271
String::CStringEquals(term, "xterm-color") ||
32723272
String::CStringEquals(term, "xterm-kitty") ||
3273+
String::CStringEquals(term, "alacritty") ||
32733274
String::CStringEquals(term, "screen") ||
32743275
String::CStringEquals(term, "tmux") ||
32753276
String::CStringEquals(term, "rxvt-unicode") ||
@@ -4437,8 +4438,8 @@ std::string XmlUnitTestResultPrinter::TestPropertiesAsXmlAttributes(
44374438
Message attributes;
44384439
for (int i = 0; i < result.test_property_count(); ++i) {
44394440
const TestProperty& property = result.GetTestProperty(i);
4440-
attributes << " " << property.key() << "="
4441-
<< "\"" << EscapeXmlAttribute(property.value()) << "\"";
4441+
attributes << " " << property.key() << "=" << "\""
4442+
<< EscapeXmlAttribute(property.value()) << "\"";
44424443
}
44434444
return attributes.GetString();
44444445
}
@@ -4748,9 +4749,7 @@ void JsonUnitTestResultPrinter::OutputJsonTestResult(::std::ostream* stream,
47484749
if (part.failed()) {
47494750
*stream << ",\n";
47504751
if (++failures == 1) {
4751-
*stream << kIndent << "\""
4752-
<< "failures"
4753-
<< "\": [\n";
4752+
*stream << kIndent << "\"" << "failures" << "\": [\n";
47544753
}
47554754
const std::string location =
47564755
internal::FormatCompilerIndependentFileLocation(part.file_name(),
@@ -4900,8 +4899,8 @@ std::string JsonUnitTestResultPrinter::TestPropertiesAsJson(
49004899
for (int i = 0; i < result.test_property_count(); ++i) {
49014900
const TestProperty& property = result.GetTestProperty(i);
49024901
attributes << ",\n"
4903-
<< indent << "\"" << property.key() << "\": "
4904-
<< "\"" << EscapeJson(property.value()) << "\"";
4902+
<< indent << "\"" << property.key() << "\": " << "\""
4903+
<< EscapeJson(property.value()) << "\"";
49054904
}
49064905
return attributes.GetString();
49074906
}

0 commit comments

Comments
 (0)