| Index: tests/standalone/io/file_test.dart
|
| diff --git a/tests/standalone/io/file_test.dart b/tests/standalone/io/file_test.dart
|
| index 946aac90d9646aae47798dfe65bb32b89c403fd3..b987698471933629077f63d24486b1d4809d8173 100644
|
| --- a/tests/standalone/io/file_test.dart
|
| +++ b/tests/standalone/io/file_test.dart
|
| @@ -1406,9 +1406,11 @@ class FileTest {
|
| // directory, or the top directory.
|
| static String getFilename(String path) {
|
| var testPath = Platform.script.resolve(path);
|
| - return new File.fromUri(testPath).existsSync()
|
| - ? testPath.toFilePath()
|
| - : Uri.parse(Platform.executable).resolve('../../runtime/$path').toFilePath();
|
| + if (new File.fromUri(testPath).existsSync()) {
|
| + return testPath.toFilePath();
|
| + }
|
| + return Uri.parse(Platform.resolvedExecutable)
|
| + .resolve('../../runtime/$path').toFilePath();
|
| }
|
|
|
| // Main test entrypoint.
|
|
|