Index: runtime/vm/dart_api_impl_test.cc |
diff --git a/runtime/vm/dart_api_impl_test.cc b/runtime/vm/dart_api_impl_test.cc |
index 677bdd615128240316859c9a90a5afcbe3d81e28..55d0220f55c88bd82bb0a7ed752b664b3b1feee6 100644 |
--- a/runtime/vm/dart_api_impl_test.cc |
+++ b/runtime/vm/dart_api_impl_test.cc |
@@ -2970,8 +2970,8 @@ TEST_CASE(IsolateInterrupt) { |
Isolate::SetInterruptCallback(IsolateInterruptTestCallback); |
sync = new Monitor(); |
- Thread* thread = new Thread(BusyLoop_start, 0); |
- EXPECT(thread != NULL); |
+ int result = Thread::Start(BusyLoop_start, 0); |
+ EXPECT_EQ(0, result); |
{ |
MonitorLocker ml(sync); |