diff options
author | Pavel Labath <labath@google.com> | 2018-03-06 15:56:20 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2018-03-06 15:56:20 +0000 |
commit | 96979ceecbd1f1329aa8ea8355c3025739b502aa (patch) | |
tree | e7ceca8507935fcdd7a303ccd8a46932f598c784 /lldb/packages/Python/lldbsuite/test/linux/buildidcase/TestTargetSymbolsBuildidCase.py | |
parent | c3e7c6d2916e8fe7ca7b32a468e67e7a9498c6b4 (diff) | |
download | bcm5719-llvm-96979ceecbd1f1329aa8ea8355c3025739b502aa.tar.gz bcm5719-llvm-96979ceecbd1f1329aa8ea8355c3025739b502aa.zip |
Rewrite TestTargetSymbolsBuildidCase to be more focused
Summary:
The test was failing in remote debugging scenario with windows as a host
as cmd.exe is not able to parse the complicated shell commands in the
Makefile.
The test seemed like a perfect candidate for a more focused testing
approach, so I have rewritten in on top of lldb-test's module-sections
functionality. The slight gotcha there was that the
Module::GetSectionList does not include the sections from the symbol
file until someone manually calls Module::GetSymbolVendor. Normally,
this is not an issue, because someone will have initialized the symbol
vendor by the time anyone starts looking at the sections. However, when
all one this is dump the section list, we run into this problem.
I've tried making this behavior more automatic, but it turns out it's
not that easy, so for now, I just manually initialize the Symbol Vendor
before dumping out the sections in lldb-test.
Reviewers: jankratochvil
Subscribers: lldb-commits
Differential Revision: https://reviews.llvm.org/D42914
llvm-svn: 326805
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/linux/buildidcase/TestTargetSymbolsBuildidCase.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/linux/buildidcase/TestTargetSymbolsBuildidCase.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/linux/buildidcase/TestTargetSymbolsBuildidCase.py b/lldb/packages/Python/lldbsuite/test/linux/buildidcase/TestTargetSymbolsBuildidCase.py deleted file mode 100644 index 1670309b61f..00000000000 --- a/lldb/packages/Python/lldbsuite/test/linux/buildidcase/TestTargetSymbolsBuildidCase.py +++ /dev/null @@ -1,22 +0,0 @@ -""" Testing separate debug info loading by its .build-id. """ -import os -import time -import lldb -import sys -from lldbsuite.test.decorators import * -from lldbsuite.test.lldbtest import * -from lldbsuite.test import lldbutil - - -class TestTargetSymbolsBuildidCase(TestBase): - - mydir = TestBase.compute_mydir(__file__) - - @no_debug_info_test # Prevent the genaration of the dwarf version of this test - @skipUnlessPlatform(['linux']) - @skipIf(hostoslist=['windows']) - def test_target_symbols_buildid_case(self): - self.build(clean=True) - exe = self.getBuildArtifact("stripped.out") - - lldbutil.run_to_name_breakpoint(self, "main", exe_name = exe) |