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 71609aa160be346448b09e5921b4c87d18d5a25a..2247055bee6a3ad1aaa8047ce8df1582e48df3ef 100644 |
--- a/runtime/vm/dart_api_impl_test.cc |
+++ b/runtime/vm/dart_api_impl_test.cc |
@@ -7127,8 +7127,11 @@ static Dart_Isolate RunLoopTestCallback(const char* script_name, |
if (Dart_CurrentIsolate() != NULL) { |
Dart_ExitIsolate(); |
} |
- Dart_Isolate isolate = TestCase::CreateTestIsolate(); |
+ Dart_Isolate isolate = TestCase::CreateTestIsolate(script_name); |
ASSERT(isolate != NULL); |
+ if (Dart_IsServiceIsolate(isolate)) { |
+ return isolate; |
+ } |
Dart_EnterScope(); |
Dart_Handle url = NewString(TestCase::url()); |
Dart_Handle source = NewString(kScriptChars); |