diff options
author | Adrian Prantl <aprantl@apple.com> | 2018-02-06 18:22:51 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2018-02-06 18:22:51 +0000 |
commit | 332351d9b98f993e4d0eb83a98ff4d4bb619b541 (patch) | |
tree | 342ad2040a651b28809035213b74aa0719f4910b /lldb/packages/Python/lldbsuite/test/python_api/symbol-context | |
parent | 2f6412c38962193f085f7830fd54e693579a35d2 (diff) | |
download | bcm5719-llvm-332351d9b98f993e4d0eb83a98ff4d4bb619b541.tar.gz bcm5719-llvm-332351d9b98f993e4d0eb83a98ff4d4bb619b541.zip |
Build each testcase variant in its own subdirectory and remove the srcdir lock file
This patch creates a <test>.dwarf, <test>.dwo, etc., build directory for each testcase variant.
Most importantly, this eliminates the need for the per-test lock file in the source directory.
Tests that are marked as NO_DEBUG_INFO_TESTCASE and build with
buildDefault() are built in a <test>.default build directory.
Differential Revision: https://reviews.llvm.org/D42763
llvm-svn: 324368
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/symbol-context')
2 files changed, 2 insertions, 8 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/symbol-context/TestSymbolContext.py b/lldb/packages/Python/lldbsuite/test/python_api/symbol-context/TestSymbolContext.py index c546cf86230..2b783fb90e5 100644 --- a/lldb/packages/Python/lldbsuite/test/python_api/symbol-context/TestSymbolContext.py +++ b/lldb/packages/Python/lldbsuite/test/python_api/symbol-context/TestSymbolContext.py @@ -73,10 +73,7 @@ class SymbolContextAPITestCase(TestBase): str(compileUnit), "The compile unit should match", exe=False, - substrs=[ - os.path.join( - self.mydir, - 'main.c')]) + substrs=[self.getSourcePath('main.c')]) function = context.GetFunction() self.assertTrue(function) @@ -92,8 +89,7 @@ class SymbolContextAPITestCase(TestBase): lineEntry.GetFileSpec().GetDirectory(), "The line entry should have the correct directory", exe=False, - substrs=[ - self.mydir]) + substrs=[self.mydir]) self.expect( lineEntry.GetFileSpec().GetFilename(), "The line entry should have the correct filename", diff --git a/lldb/packages/Python/lldbsuite/test/python_api/symbol-context/two-files/TestSymbolContextTwoFiles.py b/lldb/packages/Python/lldbsuite/test/python_api/symbol-context/two-files/TestSymbolContextTwoFiles.py index 41e44eea0a5..8640abe5625 100644 --- a/lldb/packages/Python/lldbsuite/test/python_api/symbol-context/two-files/TestSymbolContextTwoFiles.py +++ b/lldb/packages/Python/lldbsuite/test/python_api/symbol-context/two-files/TestSymbolContextTwoFiles.py @@ -22,7 +22,6 @@ class SymbolContextTwoFilesTestCase(TestBase): """Test lookup by address in a module with multiple compilation units""" self.build() exe = self.getBuildArtifact("a.out") - target = self.dbg.CreateTarget(exe) self.assertTrue(target, VALID_TARGET) @@ -45,7 +44,6 @@ class SymbolContextTwoFilesTestCase(TestBase): compile unit contains DW_AT_ranges and DW_AT_ranges_base attributes.""" self.build() exe = self.getBuildArtifact("a.out") - target = self.dbg.CreateTarget(exe) self.assertTrue(target, VALID_TARGET) |