[gardening] Fix unix_socket_test on asserts bots.

Pass executableArguments so asserts mode matches between spawner and spawnee.

TEST=unix_socket_test

Change-Id: I48dff19d4189845ba4992b9d893f31ff8abb6198
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/256965
Reviewed-by: Brian Quinlan <bquinlan@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
This commit is contained in:
Alexander Aprelev
2022-08-31 16:00:38 +00:00
committed by Commit Bot
parent 12d1e58cbc
commit d9e6d7c117
2 changed files with 10 additions and 4 deletions
+5 -2
View File
@@ -744,8 +744,11 @@ Future testStdioMessage(String tempDirPath, {bool caller: false}) async {
return;
}
if (caller) {
final process = await Process.start(Platform.resolvedExecutable,
<String>[Platform.script.toFilePath(), '--start-stdio-message-test']);
final process = await Process.start(Platform.resolvedExecutable, <String>[
...Platform.executableArguments,
Platform.script.toFilePath(),
'--start-stdio-message-test'
]);
String processStdout = "";
String processStderr = "";
process.stdout.transform(utf8.decoder).listen((line) {
+5 -2
View File
@@ -743,8 +743,11 @@ Future testStdioMessage(String tempDirPath, {bool caller: false}) async {
final completer = Completer<bool>();
if (caller) {
final process = await Process.start(Platform.resolvedExecutable,
<String>[Platform.script.toFilePath(), '--start-stdio-message-test']);
final process = await Process.start(Platform.resolvedExecutable, <String>[
...Platform.executableArguments,
Platform.script.toFilePath(),
'--start-stdio-message-test'
]);
String processStdout = "";
String processStderr = "";
process.stdout.transform(utf8.decoder).listen((line) {