Index: util/test/multiprocess_exec_test.cc |
diff --git a/util/test/multiprocess_exec_test.cc b/util/test/multiprocess_exec_test.cc |
index c30843ed51dda7c7dec49d4ceeaa985837eaad66..ecadc4444cd8454145f95405a5b3eb159900e1fb 100644 |
--- a/util/test/multiprocess_exec_test.cc |
+++ b/util/test/multiprocess_exec_test.cc |
@@ -33,10 +33,13 @@ class TestMultiprocessExec final : public MultiprocessExec { |
private: |
void MultiprocessParent() override { |
+ // Use Logging*FD() instead of Checked*FD() so that the test can fail |
+ // gracefully with a gtest assertion if the child does not execute properly. |
+ |
char c = 'z'; |
- CheckedWriteFD(WritePipeFD(), &c, 1); |
+ ASSERT_TRUE(LoggingWriteFD(WritePipeFD(), &c, 1)); |
- CheckedReadFD(ReadPipeFD(), &c, 1); |
+ ASSERT_TRUE(LoggingReadFD(ReadPipeFD(), &c, 1)); |
EXPECT_EQ('Z', c); |
} |