This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt] [test] [builtins] Set __COMPAT_LAYER=RunAsInvoker when running tests
AbandonedPublic

Authored by mstorsjo on Apr 22 2023, 12:11 PM.

Details

Summary

Set __COMPAT_LAYER=RunAsInvoker to avoid the error
"[WinError 740] The requested operation requires elevation";
heuristics can flag "trampoline_setup_test" as an executable that
may need to be run with elevated privileges.

This is the same fix as D137772 and D148988, but applied on another
set of tests.

Diff Detail

Event Timeline

mstorsjo created this revision.Apr 22 2023, 12:11 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 22 2023, 12:11 PM
Herald added subscribers: Enna1, dberris. · View Herald Transcript
mstorsjo requested review of this revision.Apr 22 2023, 12:11 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 22 2023, 12:11 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript

Should we rather set it somewhere in llvm-project/llvm/utils/lit/lit/ ?

Should we rather set it somewhere in llvm-project/llvm/utils/lit/lit/ ?

Yes - D149064 does that. When that's landed, we can close this and D148988 (and revert D137772).

mstorsjo abandoned this revision.Apr 27 2023, 1:31 AM

Superseded by D149064.