[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 10 01:46:53 PST 2022


mstorsjo created this revision.
mstorsjo added reviewers: AndreyChurbanov, JonChesterfield, natgla, alvinhochun, jdoerfert.
Herald added subscribers: guansong, yaxunl.
Herald added a project: All.
mstorsjo requested review of this revision.
Herald added a subscriber: sstefan1.
Herald added a project: OpenMP.

Windows heuristics may decide to want to run some tested processes
as elevated (since it may think some of them are installers - executables
with "dispatch" in the name may hit a heuristic looking for "patch").

Set this environment variable to disable this heuristic and just run
the executable with whatever privileges the caller has.

This fixes a couple tests on such versions of Windows where this
heuristic is active.


Repository:
  rG LLVM Github Monorepo

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
@@ -108,6 +108,9 @@
 if config.operating_system in ['Linux', 'Windows']:
     config.available_features.add('affinity')
 
+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.474477.patch
Type: text/x-patch
Size: 463 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20221110/d3287875/attachment.bin>


More information about the Openmp-commits mailing list