diff --git a/pkg/dev_compiler/test/worker/worker_test.dart b/pkg/dev_compiler/test/worker/worker_test.dart index ea2d52be8f1..14e8b59b002 100644 --- a/pkg/dev_compiler/test/worker/worker_test.dart +++ b/pkg/dev_compiler/test/worker/worker_test.dart @@ -12,18 +12,19 @@ import 'package:test/test.dart'; Directory tmp = Directory.systemTemp.createTempSync('ddc_worker_test'); File file(String path) => File.fromUri(tmp.uri.resolve(path)); +String _resolvePath(String executableRelativePath) { + return Uri.file(Platform.resolvedExecutable) + .resolve(executableRelativePath) + .toFilePath(); +} void main() { var baseArgs = []; final executableArgs = [ - Platform.script - .resolve('../../bin/dartdevc.dart') - .toFilePath(windows: Platform.isWindows), + _resolvePath('gen/dartdevc.dart.snapshot'), '--sound-null-safety', '--dart-sdk-summary', - Uri.file(Platform.resolvedExecutable, windows: Platform.isWindows) - .resolve('ddc_outline_sound.dill') - .path + _resolvePath('ddc_outline_sound.dill'), ]; group('DDC: Hello World', () { final argsFile = file('hello_world.args');