2016-03-18 15:34:23 +00:00
|
|
|
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
|
|
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
|
2021-04-26 17:58:57 +00:00
|
|
|
// @dart = 2.9
|
|
|
|
|
2021-07-16 09:13:28 +00:00
|
|
|
// VMOptions=--enable-isolate-groups
|
2019-11-27 17:23:31 +00:00
|
|
|
// VMOptions=--no-enable-isolate-groups
|
|
|
|
|
2016-03-18 15:34:23 +00:00
|
|
|
import 'dart:io';
|
|
|
|
import 'dart:isolate';
|
|
|
|
|
|
|
|
import "package:expect/expect.dart";
|
|
|
|
|
2017-11-17 01:14:32 +00:00
|
|
|
void checkResolvedExecutable(Object reObj) {
|
|
|
|
String re = reObj;
|
2016-03-18 15:34:23 +00:00
|
|
|
Expect.equals(Platform.resolvedExecutable, re);
|
|
|
|
}
|
|
|
|
|
|
|
|
main() {
|
|
|
|
var exitPort = new ReceivePort();
|
2017-04-17 21:52:57 +00:00
|
|
|
Isolate.spawn(checkResolvedExecutable, Platform.resolvedExecutable,
|
|
|
|
onExit: exitPort.sendPort);
|
2016-03-18 15:34:23 +00:00
|
|
|
exitPort.listen((_) => exitPort.close());
|
|
|
|
}
|