diff options
author | ADAM David Alan Martin <adam.martin@10gen.com> | 2019-06-26 18:40:04 -0400 |
---|---|---|
committer | ADAM David Alan Martin <adam.martin@10gen.com> | 2019-06-26 18:40:04 -0400 |
commit | 6441d4d4d1129930df9ab8adb2b0e869277786cb (patch) | |
tree | c4bdf8bcc8218464208cb202b2cfc37cfd4c338f /src/mongo/unittest/death_test.cpp | |
parent | 1656c151d450aa14b1bad1abbc95924d1861def1 (diff) | |
download | mongo-6441d4d4d1129930df9ab8adb2b0e869277786cb.tar.gz |
SERVER-41162 Correct logging of death tests.
Diffstat (limited to 'src/mongo/unittest/death_test.cpp')
-rw-r--r-- | src/mongo/unittest/death_test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/unittest/death_test.cpp b/src/mongo/unittest/death_test.cpp index 04d8ed135bd..93d835731da 100644 --- a/src/mongo/unittest/death_test.cpp +++ b/src/mongo/unittest/death_test.cpp @@ -81,14 +81,14 @@ void DeathTestImpl::_doTest() { char buf[1000]; std::ostringstream os; ssize_t bytesRead; - log() << "========== Beginning Interleaved output of Death Test =========="; + log() << "========== Beginning of interleaved output of death test =========="; while (0 < (bytesRead = read(pipes[0], buf, sizeof(buf)))) { - std::cerr.write(buf, bytesRead); - invariant(std::cerr); + std::cout.write(buf, bytesRead); + invariant(std::cout); os.write(buf, bytesRead); invariant(os); } - log() << "========== Beginning Interleaved output of Death Test =========="; + log() << "========== End of interleaved output of death test =========="; checkSyscall(bytesRead); pid_t pid; int stat; |