Skip to content

[lldb] Handle simulator printout in TestSimulatorPlatform (cherry-pick)#12857

Closed
Teemperor wants to merge 2 commits intoswiftlang:stable/21.xfrom
Teemperor:cherry_918e446ef28ac97df20d6ef2bd50c78e2fe903ac
Closed

[lldb] Handle simulator printout in TestSimulatorPlatform (cherry-pick)#12857
Teemperor wants to merge 2 commits intoswiftlang:stable/21.xfrom
Teemperor:cherry_918e446ef28ac97df20d6ef2bd50c78e2fe903ac

Conversation

@Teemperor
Copy link
Copy Markdown

@Teemperor Teemperor commented Apr 29, 2026

This fixes TestSimulatorPlatform.py failures on some host configurations.

cherry picked from commit 918e446

cherry picked from commit 93845b8

This test invokes a binary in a simulator and then reads the first line
of stderr to parse the PID of the invoked binary.

This approach fails when the simulator itself prints a warning/error on
startup. In this case, we try to parse the error as the PID and fail.

This patch just removes the line limit. It doesn't seem to add any value
as we anyway need to search until we find the PID line, and if there is
no PID line we cannot do anything but time out eventually.

See also rdar://169799464

(cherry picked from commit 918e446)
)

Commit 918e446 removed the
stderr_lines_to_read argument but didn't adjust the call site in
TestAppleSimulatorOSType. This patch just removes the extra arg here
too.

(cherry picked from commit 93845b8)
@Teemperor Teemperor requested a review from a team as a code owner April 29, 2026 14:01
@Teemperor
Copy link
Copy Markdown
Author

@swift-ci please test

@Teemperor Teemperor changed the title [lldb] Handle simulator printout in TestSimulatorPlatform [lldb] Handle simulator printout in TestSimulatorPlatform (cherry-pick) Apr 29, 2026
@Teemperor
Copy link
Copy Markdown
Author

#12928

@Teemperor Teemperor closed this May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant