[Lldb-commits] [PATCH] D25488: Fix test suite lookup path for LLDB.h

Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 12 13:31:13 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL284043: Fix test suite lookup path for LLDB.h (authored by cbieneman).

Changed prior to commit:
  https://reviews.llvm.org/D25488?vs=74294&id=74431#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D25488

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


Index: lldb/trunk/packages/Python/lldbsuite/test/decorators.py
===================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/decorators.py
+++ lldb/trunk/packages/Python/lldbsuite/test/decorators.py
@@ -512,13 +512,15 @@
                 'Current',
                 'Headers',
                 'LLDB.h')
-        else:
-            header = os.path.join(
-                os.environ["LLDB_SRC"],
-                "include",
-                "lldb",
-                "API",
-                "LLDB.h")
+            if os.path.exists(header):
+                return None
+        
+        header = os.path.join(
+            os.environ["LLDB_SRC"],
+            "include",
+            "lldb",
+            "API",
+            "LLDB.h")
         if not os.path.exists(header):
             return "skip because LLDB.h header not found"
         return None


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25488.74431.patch
Type: text/x-patch
Size: 908 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20161012/dcf38440/attachment-0001.bin>


More information about the lldb-commits mailing list