summaryrefslogtreecommitdiff
path: root/src/mongo/unittest/death_test.cpp
diff options
context:
space:
mode:
authorADAM David Alan Martin <adam.martin@10gen.com>2019-06-26 18:40:04 -0400
committerADAM David Alan Martin <adam.martin@10gen.com>2019-06-26 18:40:04 -0400
commit6441d4d4d1129930df9ab8adb2b0e869277786cb (patch)
treec4bdf8bcc8218464208cb202b2cfc37cfd4c338f /src/mongo/unittest/death_test.cpp
parent1656c151d450aa14b1bad1abbc95924d1861def1 (diff)
downloadmongo-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.cpp8
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;