[Lldb-commits] [lldb] r266815 - Eliminate circular dependency introduced between lldbtest.py and decorators.py

Kate Stone via lldb-commits lldb-commits at lists.llvm.org
Tue Apr 19 13:45:47 PDT 2016


Author: kate
Date: Tue Apr 19 15:45:47 2016
New Revision: 266815

URL: http://llvm.org/viewvc/llvm-project?rev=266815&view=rev
Log:
Eliminate circular dependency introduced between lldbtest.py and decorators.py


Modified:
    lldb/trunk/packages/Python/lldbsuite/test/decorators.py

Modified: lldb/trunk/packages/Python/lldbsuite/test/decorators.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/decorators.py?rev=266815&r1=266814&r2=266815&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/decorators.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/decorators.py Tue Apr 19 15:45:47 2016
@@ -15,7 +15,6 @@ import unittest2
 
 # LLDB modules
 import use_lldb_suite
-import lldbtest
 
 import lldb
 from . import configuration
@@ -512,8 +511,8 @@ def skipUnlessCompilerRt(func):
 def skipUnlessClangModules():
     """Decorate the item to skip test unless Clang -gmodules flag is supported."""
     def is_compiler_clang_with_gmodules(self):
-        builder = lldbtest.builder_module()
-        compiler_path = builder.getCompiler()
+        compiler_path = self.getCompiler()
+        print(compiler_path)
         compiler = os.path.basename(compiler_path)
         if compiler != "clang":
             return "Test requires clang as compiler"




More information about the lldb-commits mailing list