This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Don't add no-sandbox entitlement when running tests on simulator
ClosedPublic

Authored by teemperor on Oct 8 2020, 9:12 AM.

Details

Summary

It seems that if codesigning the test executables with the com.apple.private.security.no-sandbox entitlement
then the simulator refuses to launch them and every test fails with Process launch failed: process exited with status -1 (no such process.).

This patch checks if we're trying to run the test suite on the simulator and then avoids signing the executable
with no-sandbox.

Diff Detail

Event Timeline

teemperor requested review of this revision.Oct 8 2020, 9:12 AM
teemperor created this revision.
JDevlieghere accepted this revision.Oct 8 2020, 10:06 AM
JDevlieghere added inline comments.
lldb/packages/Python/lldbsuite/test/builders/darwin.py
75

Maybe entitlements_file = 'entitlements-simulator.plist' if env == "simulator" else 'entitlements.plist' if it fits in 120 cols

This revision is now accepted and ready to land.Oct 8 2020, 10:06 AM
teemperor added a project: Restricted Project.Oct 12 2020, 10:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 13 2020, 6:09 AM