[Lldb-commits] [lldb] r284043 - Fix test suite lookup path for LLDB.h
Chris Bieneman via lldb-commits
lldb-commits at lists.llvm.org
Wed Oct 12 13:22:02 PDT 2016
Author: cbieneman
Date: Wed Oct 12 15:22:02 2016
New Revision: 284043
URL: http://llvm.org/viewvc/llvm-project?rev=284043&view=rev
Log:
Fix test suite lookup path for LLDB.h
Summary:
When running on Darwin, the test suite assumes a specific directory structure for the build directory. This works for the Xcode project builds, but fails for CMake builds regardless of whether or not you are generating the LLDB framework.
This patch allows the Darwin code path to fall back to the more generic code path used by other platforms in the event that LLDB.h isn't where the test suite expects it.
This allows API tests to run on Darwin when building with CMake with the framework build enabled or disabled.
Reviewers: tfiala, zturner
Subscribers: labath, lldb-commits
Differential Revision: https://reviews.llvm.org/D25488
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=284043&r1=284042&r2=284043&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/decorators.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/decorators.py Wed Oct 12 15:22:02 2016
@@ -512,13 +512,15 @@ def skipIfNoSBHeaders(func):
'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
More information about the lldb-commits
mailing list