From 02028fa1902a8475a44622774c8f591836d7400c Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Thu, 23 Jun 2011 21:22:01 +0000 Subject: [PATCH] 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 --- lldb/test/python_api/thread/TestThreadAPI.py | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/lldb/test/python_api/thread/TestThreadAPI.py b/lldb/test/python_api/thread/TestThreadAPI.py index 58e157f68e63..aa098d3dd74d 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)