summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/target/TestTargetAPI.py
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-03-04 23:40:06 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-03-04 23:40:06 +0000
commit05178f6e544f8cd4d6eead2bf13320a7acf7523a (patch)
treedeac6210a4a52b481940abfc4903562bcd9e5f07 /lldb/test/python_api/target/TestTargetAPI.py
parentf045b7ab4515a62fa242ecc2a85a9726266838b0 (diff)
downloadbcm5719-llvm-05178f6e544f8cd4d6eead2bf13320a7acf7523a.tar.gz
bcm5719-llvm-05178f6e544f8cd4d6eead2bf13320a7acf7523a.zip
Add a test case for the lldb command 'process connect'.
We start a fake debugserver listening on localhost:12345 and issue the command 'process connect connect://localhost:12345' to connect to it. llvm-svn: 127048
Diffstat (limited to 'lldb/test/python_api/target/TestTargetAPI.py')
-rw-r--r--lldb/test/python_api/target/TestTargetAPI.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/lldb/test/python_api/target/TestTargetAPI.py b/lldb/test/python_api/target/TestTargetAPI.py
index 7c3bd97b769..b85f4d95981 100644
--- a/lldb/test/python_api/target/TestTargetAPI.py
+++ b/lldb/test/python_api/target/TestTargetAPI.py
@@ -14,16 +14,16 @@ class TargetAPITestCase(TestBase):
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
- def test_with_dsym(self):
- """Exercise SBTaget APIs."""
+ def test_resolve_symbol_context_with_address_with_dsym(self):
+ """Exercise SBTaget.ResolveSymbolContextForAddress() API."""
self.buildDsym()
- self.target_api()
+ self.resolve_symbol_context_with_address()
@python_api_test
- def test_with_dwarf(self):
- """Exercise SBTarget APIs."""
+ def test_resolve_symbol_context_with_address_with_dwarf(self):
+ """Exercise SBTarget.ResolveSymbolContextForAddress() API."""
self.buildDwarf()
- self.target_api()
+ self.resolve_symbol_context_with_address()
def setUp(self):
# Call super's setUp().
@@ -32,8 +32,8 @@ class TargetAPITestCase(TestBase):
self.line1 = line_number('main.c', '// Find the line number for breakpoint 1 here.')
self.line2 = line_number('main.c', '// Find the line number for breakpoint 2 here.')
- def target_api(self):
- """Exercise SBTarget APIs."""
+ def resolve_symbol_context_with_address(self):
+ """Exercise SBTaget.ResolveSymbolContextForAddress() API."""
exe = os.path.join(os.getcwd(), "a.out")
# Create a target by the debugger.
OpenPOWER on IntegriCloud