[Lldb-commits] [lldb] 5a33ba5 - [lldb/Test] Ensure inline tests have a unique build directory
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Thu Jun 11 09:37:01 PDT 2020
Author: Jonas Devlieghere
Date: 2020-06-11T09:36:54-07:00
New Revision: 5a33ba52b66ceb336b2dd941c9e3f5313a388e63
URL: https://github.com/llvm/llvm-project/commit/5a33ba52b66ceb336b2dd941c9e3f5313a388e63
DIFF: https://github.com/llvm/llvm-project/commit/5a33ba52b66ceb336b2dd941c9e3f5313a388e63.diff
LOG: [lldb/Test] Ensure inline tests have a unique build directory
Inline tests have one method named 'test' which means that multiple
inline tests in the same file end up sharing the same build directory
per variant.
This patch overrides the getBuildDirBasename method for the InlineTest
class to include the test name.
Differential revision: https://reviews.llvm.org/D81516
Added:
Modified:
lldb/packages/Python/lldbsuite/test/lldbinline.py
Removed:
################################################################################
diff --git a/lldb/packages/Python/lldbsuite/test/lldbinline.py b/lldb/packages/Python/lldbsuite/test/lldbinline.py
index 71143ce3f16a..29a708440c2a 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbinline.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbinline.py
@@ -82,6 +82,11 @@ def handle_breakpoint(self, test, breakpoint_id):
class InlineTest(TestBase):
+ # Overrides
+
+ def getBuildDirBasename(self):
+ return self.__class__.__name__ + "." + self.testMethodName
+
# Internal implementation
def BuildMakefile(self):
More information about the lldb-commits
mailing list