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 402257b0cb8ea672ef1ef6e245193577f585532b..e86f818a925323ebd1bd6f380532be28bbd4634d 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); |