diff --git a/tests/standalone/io/regress_50904_test.dart b/tests/standalone/io/regress_50904_test.dart index 80fc914f3e7..8c3f31ec09c 100644 --- a/tests/standalone/io/regress_50904_test.dart +++ b/tests/standalone/io/regress_50904_test.dart @@ -19,8 +19,11 @@ Future runTest(int length) async { final Process proc = await Process.start( Platform.executable, - [Platform.script.toFilePath(), 'receiver'], - runInShell: true, + [ + ...Platform.executableArguments, + Platform.script.toFilePath(), + 'receiver', + ], ); proc.stdin.add(bytes);