[lldb][test] XcodeSDKModuleTests: remove non-deterministic source mapping checks #129526
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This assertion was added to check that
RegisterXcodeSDKwill correctly update the source mappings of the module. However, the source mapping will only get updated if theHost::RunShellCommandcall toxcrunsucceeded. Even ifxcrunfailed to find an SDK, the source mappings would get an entry. But if the shell invocation itself failed, then the mappings are not updated (seellvm-project/lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm
Lines 424 to 444 in f6212c1
xcrunis on a given host, this test may fail. On my machine this happens consistently in debug and release builds.This patch removes this flakey assertion. We unfortunately lost some test coverage here but I'm not sure there's great alternatives unless we either:
xcruncall somehow (we could maybe pass a callable around which defaults toxcrunin non-test code?)xcruntime-out not an error either?