| Index: tests/standalone/io/platform_test.dart
|
| diff --git a/tests/standalone/io/platform_test.dart b/tests/standalone/io/platform_test.dart
|
| index e3ee4d43780f0905b42637276ed4352876aaf596..269a4871a4e3a4b884e46c3e3fca89790c5940f9 100644
|
| --- a/tests/standalone/io/platform_test.dart
|
| +++ b/tests/standalone/io/platform_test.dart
|
| @@ -25,6 +25,15 @@ test() {
|
| var environment = Platform.environment;
|
| Expect.isTrue(environment is Map<String, String>);
|
| Expect.isTrue(Platform.executable.contains('dart'));
|
| + if (!Platform.isWindows) {
|
| + Expect.isTrue(Platform.executable.startsWith('/'));
|
| + } else {
|
| + // This assumes that tests (both locally and on the bots) are
|
| + // running off a location referred to by a drive letter. If a UNC
|
| + // location is used or long names ("\\?\" prefix) is used this
|
| + // needs to be fixed.
|
| + Expect.equals(Platform.executable.substring(1, 3), ':\\');
|
| + }
|
| // Move directory to be sure script is correct.
|
| var oldDir = Directory.current;
|
| Directory.current = Directory.current.parent;
|
|
|