summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/thread/TestThreadAPI.py
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-06-23 21:22:01 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-06-23 21:22:01 +0000
commit02028fa1902a8475a44622774c8f591836d7400c (patch)
treee19a7cbed292491193f20998a139f1e1b5dbb2ad /lldb/test/python_api/thread/TestThreadAPI.py
parent0b2bd862fffce979220855e6633ff5718793008d (diff)
downloadbcm5719-llvm-02028fa1902a8475a44622774c8f591836d7400c.tar.gz
bcm5719-llvm-02028fa1902a8475a44622774c8f591836d7400c.zip
For now, use 'b.out' compiled from main2.cpp as the executable name for test_run_to_address_with_dsym/dwarf()
to distinguish between other test cases which use 'a.out' compiled from main.cpp. llvm-svn: 133764
Diffstat (limited to 'lldb/test/python_api/thread/TestThreadAPI.py')
-rw-r--r--lldb/test/python_api/thread/TestThreadAPI.py17
1 files changed, 6 insertions, 11 deletions
diff --git a/lldb/test/python_api/thread/TestThreadAPI.py b/lldb/test/python_api/thread/TestThreadAPI.py
index 58e157f68e6..aa098d3dd74 100644
--- a/lldb/test/python_api/thread/TestThreadAPI.py
+++ b/lldb/test/python_api/thread/TestThreadAPI.py
@@ -43,19 +43,19 @@ class ThreadAPITestCase(TestBase):
def test_run_to_address_with_dsym(self):
"""Test Python SBThread.RunToAddress() API."""
# We build a different executable than the default buildDwarf() does.
- d = {'CXX_SOURCES': 'main2.cpp'}
+ d = {'CXX_SOURCES': 'main2.cpp', 'EXE': 'b.out'}
self.buildDsym(dictionary=d)
self.setTearDownCleanup(dictionary=d)
- self.run_to_address()
+ self.run_to_address('b.out')
@python_api_test
def test_run_to_address_with_dwarf(self):
"""Test Python SBThread.RunToAddress() API."""
# We build a different executable than the default buildDwarf() does.
- d = {'CXX_SOURCES': 'main2.cpp'}
+ d = {'CXX_SOURCES': 'main2.cpp', 'EXE': 'b.out'}
self.buildDwarf(dictionary=d)
self.setTearDownCleanup(dictionary=d)
- self.run_to_address()
+ self.run_to_address('b.out')
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@python_api_test
@@ -220,14 +220,9 @@ class ThreadAPITestCase(TestBase):
self.assertTrue(thread.GetStopReason() == lldb.eStopReasonPlanComplete)
self.assertTrue(lineEntry.GetLine() == self.line3)
- def run_to_address(self):
+ def run_to_address(self, exe_name):
"""Test Python SBThread.RunToAddress() API."""
- # We build a different executable than the default buildDwarf() does.
- d = {'CXX_SOURCES': 'main2.cpp'}
- self.buildDwarf(dictionary=d)
- self.setTearDownCleanup(dictionary=d)
-
- exe = os.path.join(os.getcwd(), "a.out")
+ exe = os.path.join(os.getcwd(), exe_name)
target = self.dbg.CreateTarget(exe)
self.assertTrue(target, VALID_TARGET)
OpenPOWER on IntegriCloud