[Openmp-commits] [PATCH] D149356: Revert "[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 Apr 27 09:21:02 PDT 2023


mstorsjo created this revision.
mstorsjo added reviewers: alvinhochun, tianshilei1992.
Herald added subscribers: sunshaoce, guansong, yaxunl.
Herald added a project: All.
mstorsjo requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: jplehr, sstefan1.
Herald added a project: OpenMP.

This reverts commit 63f0fdc2628dfb2f52ed5a92e579f99261d946ed <https://reviews.llvm.org/rG63f0fdc2628dfb2f52ed5a92e579f99261d946ed>.

Since f1431bbfb17cd7167adda9fc8521bb6eec52c300 <https://reviews.llvm.org/rGf1431bbfb17cd7167adda9fc8521bb6eec52c300>, this environment
variable is always set up by lit itself, so individual test suites
don't need to set it.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D149356

Files:
  openmp/runtime/test/lit.cfg


Index: openmp/runtime/test/lit.cfg
===================================================================
--- openmp/runtime/test/lit.cfg
+++ openmp/runtime/test/lit.cfg
@@ -120,14 +120,6 @@
   if target_arch in ['x86_64', 'i386']:
     config.available_features.add('x86-target-arch')
 
-# 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: D149356.517599.patch
Type: text/x-patch
Size: 844 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20230427/37ff4f12/attachment.bin>


More information about the Openmp-commits mailing list