[Openmp-commits] [PATCH] D137772: [openmp] [test] Set __COMPAT_LAYER=RunAsInvoker when running tests on Windows

Martin Storsjö via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Nov 17 14:37:08 PST 2022


mstorsjo updated this revision to Diff 476243.
mstorsjo added a comment.

Rebased, added a comment.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D137772/new/

https://reviews.llvm.org/D137772

Files:
  openmp/runtime/test/lit.cfg


Index: openmp/runtime/test/lit.cfg
===================================================================
--- openmp/runtime/test/lit.cfg
+++ openmp/runtime/test/lit.cfg
@@ -111,6 +111,14 @@
 if config.operating_system in ['Linux']:
     config.available_features.add('hidden-helper')
 
+# 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 "patch" which is a substring of "dispatch". Set an environment
+# variable indicating that we want to execute them with the current user.
+if config.operating_system == 'Windows':
+    config.environment['__COMPAT_LAYER'] = 'RunAsInvoker'
+
 import multiprocessing
 try:
     if multiprocessing.cpu_count() > 1:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137772.476243.patch
Type: text/x-patch
Size: 843 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20221117/3ad3da30/attachment.bin>


More information about the Openmp-commits mailing list