| Index: tests/standalone/vmservice/test_helper.dart
|
| diff --git a/tests/standalone/vmservice/test_helper.dart b/tests/standalone/vmservice/test_helper.dart
|
| index 52d1983c44174b40adfd661e06568baae640d296..7e955392ac39f00d9d54d102006c13417eb5d4ba 100644
|
| --- a/tests/standalone/vmservice/test_helper.dart
|
| +++ b/tests/standalone/vmservice/test_helper.dart
|
| @@ -87,6 +87,7 @@ class TestLauncher {
|
| String dartExecutable = Platform.executable;
|
| return Process.start(dartExecutable,
|
| ['--enable-vm-service:0', scriptPath]).then((p) {
|
| +
|
| Completer completer = new Completer();
|
| process = p;
|
| var portNumber;
|
| @@ -108,17 +109,21 @@ class TestLauncher {
|
| // Stop repeat completions.
|
| first = false;
|
| }
|
| + print(line);
|
| });
|
| process.stderr.transform(new StringDecoder())
|
| .transform(new LineTransformer()).listen((line) {
|
| + print(line);
|
| + });
|
| + process.exitCode.then((code) {
|
| + Expect.equals(0, code, 'Launched dart executable exited with error.');
|
| });
|
| - process.exitCode.then((_) { });
|
| return completer.future;
|
| });
|
| }
|
|
|
| void requestExit() {
|
| - process.stdin.add([32]);
|
| + process.stdin.add([32, 13, 10]);
|
| }
|
| }
|
|
|
| @@ -144,14 +149,17 @@ class IsolateListTester {
|
| Expect.isTrue(exists, 'No isolate with id: $id');
|
| }
|
|
|
| - void checkIsolateNameContains(String name) {
|
| + int checkIsolateNameContains(String name) {
|
| var exists = false;
|
| + int id;
|
| isolateList['members'].forEach((isolate) {
|
| if (isolate['name'].contains(name)) {
|
| exists = true;
|
| + id = isolate['id'];
|
| }
|
| });
|
| Expect.isTrue(exists, 'No isolate with name: $name');
|
| + return id;
|
| }
|
|
|
| void checkIsolateNamePrefix(int id, String name) {
|
|
|