[all-commits] [llvm/llvm-project] f1431b: [lit] Set __COMPAT_LAYER=RunAsInvoker when running...
alvinhochun via All-commits
all-commits at lists.llvm.org
Thu Apr 27 01:28:59 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f1431bbfb17cd7167adda9fc8521bb6eec52c300
https://github.com/llvm/llvm-project/commit/f1431bbfb17cd7167adda9fc8521bb6eec52c300
Author: Alvin Wong <alvin at alvinhc.com>
Date: 2023-04-27 (Thu, 27 Apr 2023)
Changed paths:
M llvm/utils/lit/lit/TestingConfig.py
Log Message:
-----------
[lit] Set __COMPAT_LAYER=RunAsInvoker when running tests on Windows
Windows heuristics try to detect old installer programs and run them as
elevated. These heuristics include checking for certain substrings in
file names, e.g. "patch", "update", "setup". When lit tries to run
affected executables, it produces "[WinError 740] The requested
operation requires elevation" instead. Several tests have been affected
by this issue (see https://reviews.llvm.org/D137772,
https://reviews.llvm.org/D148988, https://reviews.llvm.org/D149004).
We should set this environment variable to disable this heuristic once
and for all, instead of setting it in inidividual test suites. There
should be no lit tests that legitimately want to run as elevated.
Differential Revision: https://reviews.llvm.org/D149064
More information about the All-commits
mailing list