Skip to content

Commit 5cc8fca

Browse files
author
Anders Johnsen
committed
Fix platform executable test.
BUG= [email protected] Review URL: https://codereview.chromium.org//1175923002.
1 parent f5db566 commit 5cc8fca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/standalone/io/platform_executable_test.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ void testDartExecShouldNotBeInCurrentDir() {
4444
}
4545

4646
void testShouldSucceedWithEmptyPathEnvironment() {
47-
Process.runSync(platformExeName, ['--version'],
47+
var command = Platform.isWindows ? 'dir' : 'ls';
48+
Process.runSync(command, [],
4849
includeParentEnvironment: false,
4950
environment: {_SCRIPT_KEY: 'yes', 'PATH': ''});
5051
}

0 commit comments

Comments
 (0)