[gardening] Fix standalone/io/regress_50904_test

* Do not use runInShell on Android.
* Forward runtime flags to the child process.

Fixes https://github.com/dart-lang/sdk/issues/52657

Fixed: 52657
Cq-Include-Trybots: luci.dart.try:vm-aot-android-release-arm64c-try
Change-Id: Ie2761172f80cb3fc3f22a89984e417ca8c38d4f1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/308342
Commit-Queue: Tess Strickland <sstrickl@google.com>
Reviewed-by: Tess Strickland <sstrickl@google.com>
This commit is contained in:
Vyacheslav Egorov 2023-06-09 17:04:29 +00:00 committed by Commit Queue
parent 0d0e301979
commit eefa234d28

View file

@ -19,8 +19,11 @@ Future<void> runTest(int length) async {
final Process proc = await Process.start(
Platform.executable,
<String>[Platform.script.toFilePath(), 'receiver'],
runInShell: true,
<String>[
...Platform.executableArguments,
Platform.script.toFilePath(),
'receiver',
],
);
proc.stdin.add(bytes);