[libcxx-commits] [libcxx] 619beb0 - [libc++] Replace the FakeLitConfig by an actual LitConfig object

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jun 15 16:32:13 PDT 2020


Author: Louis Dionne
Date: 2020-06-15T19:32:06-04:00
New Revision: 619beb0a5359a027478aba397a04350b0c6e7cb8

URL: https://github.com/llvm/llvm-project/commit/619beb0a5359a027478aba397a04350b0c6e7cb8
DIFF: https://github.com/llvm/llvm-project/commit/619beb0a5359a027478aba397a04350b0c6e7cb8.diff

LOG: [libc++] Replace the FakeLitConfig by an actual LitConfig object

Added: 
    

Modified: 
    libcxx/utils/libcxx/test/dsl.py

Removed: 
    


################################################################################
diff  --git a/libcxx/utils/libcxx/test/dsl.py b/libcxx/utils/libcxx/test/dsl.py
index 475e19eae231..f3257353f9ac 100644
--- a/libcxx/utils/libcxx/test/dsl.py
+++ b/libcxx/utils/libcxx/test/dsl.py
@@ -31,11 +31,17 @@ def _executeScriptInternal(test, commands):
   """
   parsedCommands = libcxx.test.newformat.parseScript(test, preamble=commands)
 
-  class FakeLitConfig(object):
-    def __init__(self):
-      self.isWindows = platform.system() == 'Windows'
-      self.maxIndividualTestTime = 0
-  litConfig = FakeLitConfig()
+  litConfig = lit.LitConfig.LitConfig(
+    progname='lit',
+    path=[],
+    quiet=False,
+    useValgrind=False,
+    valgrindLeakCheck=False,
+    valgrindArgs=[],
+    noExecute=False,
+    debug=False,
+    isWindows=platform.system() == 'Windows',
+    params={})
   _, tmpBase = libcxx.test.newformat._getTempPaths(test)
   execDir = os.path.dirname(test.getExecPath())
   if not os.path.exists(execDir):


        


More information about the libcxx-commits mailing list