Index: third_party/mojo/src/mojo/public/c/system/tests/core_unittest.cc |
diff --git a/third_party/mojo/src/mojo/public/c/system/tests/core_unittest.cc b/third_party/mojo/src/mojo/public/c/system/tests/core_unittest.cc |
index 2f3ef629a5727d6a86481225bdfad613748a3bf4..71e61f486074529eaf86c3b8df5d3777e79bed9b 100644 |
--- a/third_party/mojo/src/mojo/public/c/system/tests/core_unittest.cc |
+++ b/third_party/mojo/src/mojo/public/c/system/tests/core_unittest.cc |
@@ -109,6 +109,9 @@ TEST(CoreTest, BasicMessagePipe) { |
EXPECT_EQ(MOJO_HANDLE_SIGNAL_WRITABLE, state.satisfied_signals); |
EXPECT_EQ(kSignalAll, state.satisfiable_signals); |
+ // Last parameter is optional. |
+ EXPECT_EQ(MOJO_RESULT_OK, MojoWait(h0, MOJO_HANDLE_SIGNAL_WRITABLE, 0, NULL)); |
+ |
// Try to read. |
buffer_size = static_cast<uint32_t>(sizeof(buffer)); |
EXPECT_EQ(MOJO_RESULT_SHOULD_WAIT, |