[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
Mon Nov 28 12:41:01 PST 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG63f0fdc2628d: [openmp] [test] Set __COMPAT_LAYER=RunAsInvoker when running tests on Windows (authored by mstorsjo).

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.478336.patch
Type: text/x-patch
Size: 843 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20221128/765c7371/attachment.bin>


More information about the Openmp-commits mailing list