Index: runtime/vm/port_test.cc |
diff --git a/runtime/vm/port_test.cc b/runtime/vm/port_test.cc |
index 3ffc81bed87afbefbc86ad496d315b62b96887ef..7e19f154c02dc1b55ff4c4898558f5841ea12156 100644 |
--- a/runtime/vm/port_test.cc |
+++ b/runtime/vm/port_test.cc |
@@ -235,8 +235,8 @@ void ThreadedPort_start(uword parameter) { |
TEST_CASE(ThreadedPort) { |
intptr_t local = PortMap::CreatePort(); |
- Thread* thr = new Thread(ThreadedPort_start, local); |
- EXPECT(thr != NULL); |
+ int result = Thread::Start(ThreadedPort_start, local); |
+ EXPECT_EQ(0, result); |
PortMessage* msg = NextMessage(); |
EXPECT_EQ(local, msg->dest_port()); |