Index: runtime/vm/message_queue_test.cc |
diff --git a/runtime/vm/message_queue_test.cc b/runtime/vm/message_queue_test.cc |
index e807b32d38ee70c48ce079d52326e2f2c5b17c07..66fb7f42dce198aa2d14afa085409063164c34fc 100644 |
--- a/runtime/vm/message_queue_test.cc |
+++ b/runtime/vm/message_queue_test.cc |
@@ -109,8 +109,8 @@ void MessageReceiver_start(uword unused) { |
TEST_CASE(MessageQueue_WaitNotify) { |
sync = new Monitor(); |
- Thread* thread = new Thread(MessageReceiver_start, 0); |
- EXPECT(thread != NULL); |
+ int result = Thread::Start(MessageReceiver_start, 0); |
+ EXPECT_EQ(0, result); |
// Wait for the shared queue to be created. |
while (shared_queue == NULL) { |