Index: base/message_loop_unittest.cc |
diff --git a/base/message_loop_unittest.cc b/base/message_loop_unittest.cc |
index 6208e993edc1af94589efb5652206f9961441104..da0013c250068d4fae801d50e35f3f9dbd937310 100644 |
--- a/base/message_loop_unittest.cc |
+++ b/base/message_loop_unittest.cc |
@@ -1578,8 +1578,10 @@ TEST(MessageLoopTest, FileDescriptorWatcherOutlivesMessageLoop) { |
// and don't run the message loop, just destroy it. |
} |
} |
- HANDLE_EINTR(close(pipefds[0])); |
- HANDLE_EINTR(close(pipefds[1])); |
+ if (HANDLE_EINTR(close(pipefds[0])) < 0) |
+ PLOG(ERROR) << "close"; |
+ if (HANDLE_EINTR(close(pipefds[1])) < 0) |
+ PLOG(ERROR) << "close"; |
} |
TEST(MessageLoopTest, FileDescriptorWatcherDoubleStop) { |
@@ -1601,8 +1603,10 @@ TEST(MessageLoopTest, FileDescriptorWatcherDoubleStop) { |
controller.StopWatchingFileDescriptor(); |
} |
} |
- HANDLE_EINTR(close(pipefds[0])); |
- HANDLE_EINTR(close(pipefds[1])); |
+ if (HANDLE_EINTR(close(pipefds[0])) < 0) |
+ PLOG(ERROR) << "close"; |
+ if (HANDLE_EINTR(close(pipefds[1])) < 0) |
+ PLOG(ERROR) << "close"; |
} |
} // namespace |