aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGennadiy Civil <misterg@google.com>2018-08-09 11:53:45 -0400
committerGennadiy Civil <misterg@google.com>2018-08-09 11:53:45 -0400
commitf7042937af1b684c02145b0ddc6909e387caa81e (patch)
tree803b7b02bd7e23f7171416f01a876acf0fc163a7
parent9faeadedf4011bc65802df4b6bf80ee83ac8ec26 (diff)
downloadgoogletest-f7042937af1b684c02145b0ddc6909e387caa81e.tar.gz
googletest-f7042937af1b684c02145b0ddc6909e387caa81e.tar.bz2
googletest-f7042937af1b684c02145b0ddc6909e387caa81e.zip
Fixing identation, causes build errors when warnings are treated as errors
-rw-r--r--googletest/src/gtest-death-test.cc13
1 files changed, 8 insertions, 5 deletions
diff --git a/googletest/src/gtest-death-test.cc b/googletest/src/gtest-death-test.cc
index 22141183..854bc467 100644
--- a/googletest/src/gtest-death-test.cc
+++ b/googletest/src/gtest-death-test.cc
@@ -233,13 +233,16 @@ static std::string DeathTestThreadWarning(size_t thread_count) {
Message msg;
msg << "Death tests use fork(), which is unsafe particularly"
<< " in a threaded context. For this test, " << GTEST_NAME_ << " ";
- if (thread_count == 0)
+ if (thread_count == 0) {
msg << "couldn't detect the number of threads.";
- else
+ } else {
msg << "detected " << thread_count << " threads.";
- msg << " See https://github.com/google/googletest/blob/master/googletest/docs/advanced.md#death-tests-and-threads"
- << " for more explanation and suggested solutions, especially if"
- << " this is the last message you see before your test times out.";
+ }
+ msg << " See "
+ "https://github.com/google/googletest/blob/master/googletest/docs/"
+ "advanced.md#death-tests-and-threads"
+ << " for more explanation and suggested solutions, especially if"
+ << " this is the last message you see before your test times out.";
return msg.GetString();
}
# endif // !GTEST_OS_WINDOWS && !GTEST_OS_FUCHSIA