diff --git a/compiler-rt/test/builtins/Unit/lit.cfg.py b/compiler-rt/test/builtins/Unit/lit.cfg.py --- a/compiler-rt/test/builtins/Unit/lit.cfg.py +++ b/compiler-rt/test/builtins/Unit/lit.cfg.py @@ -128,3 +128,12 @@ builtins_source_feature_duplicates) ) config.available_features.update(builtins_source_features) + +# Avoid Windows heuristics which try to detect potential installer programs +# (which may need to run with elevated privileges) and ask if the user wants +# to run them in that way. This heuristic may match for executables containing +# the word "update", e.g. `TestCases/asan_update_allocation.cpp`. Set an +# environment variable indicating that we want to execute them with the current +# user. +if config.host_os == 'Windows': + config.environment['__COMPAT_LAYER'] = 'RunAsInvoker'