Merge e0d5dba132
into a6ce08abf7
This commit is contained in:
commit
bae18952c8
@ -1105,7 +1105,7 @@ class StreamingListener : public EmptyTestEventListener {
|
|||||||
GTEST_CHECK_(sockfd_ != -1)
|
GTEST_CHECK_(sockfd_ != -1)
|
||||||
<< "Send() can be called only when there is a connection.";
|
<< "Send() can be called only when there is a connection.";
|
||||||
|
|
||||||
const auto len = static_cast<size_t>(message.length());
|
const auto len = message.length();
|
||||||
if (write(sockfd_, message.c_str(), len) != static_cast<ssize_t>(len)) {
|
if (write(sockfd_, message.c_str(), len) != static_cast<ssize_t>(len)) {
|
||||||
GTEST_LOG_(WARNING) << "stream_result_to: failed to stream to "
|
GTEST_LOG_(WARNING) << "stream_result_to: failed to stream to "
|
||||||
<< host_name_ << ":" << port_num_;
|
<< host_name_ << ":" << port_num_;
|
||||||
|
@ -1165,7 +1165,7 @@ int UnitTestImpl::test_to_run_count() const {
|
|||||||
// trace but Bar() and CurrentOsStackTraceExceptTop() won't.
|
// trace but Bar() and CurrentOsStackTraceExceptTop() won't.
|
||||||
std::string UnitTestImpl::CurrentOsStackTraceExceptTop(int skip_count) {
|
std::string UnitTestImpl::CurrentOsStackTraceExceptTop(int skip_count) {
|
||||||
return os_stack_trace_getter()->CurrentStackTrace(
|
return os_stack_trace_getter()->CurrentStackTrace(
|
||||||
static_cast<int>(GTEST_FLAG_GET(stack_trace_depth)), skip_count + 1
|
GTEST_FLAG_GET(stack_trace_depth), skip_count + 1
|
||||||
// Skips the user-specified number of frames plus this function
|
// Skips the user-specified number of frames plus this function
|
||||||
// itself.
|
// itself.
|
||||||
); // NOLINT
|
); // NOLINT
|
||||||
@ -4193,8 +4193,7 @@ void XmlUnitTestResultPrinter::OutputXmlCDataSection(::std::ostream* stream,
|
|||||||
for (;;) {
|
for (;;) {
|
||||||
const char* const next_segment = strstr(segment, "]]>");
|
const char* const next_segment = strstr(segment, "]]>");
|
||||||
if (next_segment != nullptr) {
|
if (next_segment != nullptr) {
|
||||||
stream->write(segment,
|
stream->write(segment, next_segment - segment);
|
||||||
static_cast<std::streamsize>(next_segment - segment));
|
|
||||||
*stream << "]]>]]><![CDATA[";
|
*stream << "]]>]]><![CDATA[";
|
||||||
segment = next_segment + strlen("]]>");
|
segment = next_segment + strlen("]]>");
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user