From 05178f6e544f8cd4d6eead2bf13320a7acf7523a Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Fri, 4 Mar 2011 23:40:06 +0000 Subject: 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 --- lldb/test/python_api/target/TestTargetAPI.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lldb/test/python_api') 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. -- cgit v1.2.3