diff options
author | Gennadiy Civil <gennadiycivil@users.noreply.github.com> | 2018-08-09 15:33:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-09 15:33:42 (GMT) |
commit | d5b31df900802ba2651ebd51dfb1a0f83edae860 (patch) | |
tree | d35322f39aca4d394815eaba89dd5a97f90dfdb4 /googletest | |
parent | 9faeadedf4011bc65802df4b6bf80ee83ac8ec26 (diff) | |
download | googletest-d5b31df900802ba2651ebd51dfb1a0f83edae860.zip googletest-d5b31df900802ba2651ebd51dfb1a0f83edae860.tar.gz googletest-d5b31df900802ba2651ebd51dfb1a0f83edae860.tar.bz2 |
Update gtest-death-test.cc
Diffstat (limited to 'googletest')
-rw-r--r-- | googletest/src/gtest-death-test.cc | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/googletest/src/gtest-death-test.cc b/googletest/src/gtest-death-test.cc index 2214118..9735df1 100644 --- a/googletest/src/gtest-death-test.cc +++ b/googletest/src/gtest-death-test.cc @@ -233,16 +233,18 @@ 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 +}# endif // !GTEST_OS_WINDOWS && !GTEST_OS_FUCHSIA // Flag characters for reporting a death test that did not die. static const char kDeathTestLived = 'L'; |