Modify test scripts to accomodate SBTarget.Launch() API change.

llvm-svn: 124828
This commit is contained in:
Johnny Chen
2011-02-03 23:15:53 +00:00
parent 3f924e4e87
commit d762ff1faa
17 changed files with 21 additions and 21 deletions

View File

@@ -59,9 +59,12 @@ class EventAPITestCase(TestBase):
breakpoint.GetNumLocations() == 1,
VALID_BREAKPOINT)
# Get the debugger listener.
listener = self.dbg.GetListener()
# Now launch the process, and do not stop at entry point.
error = lldb.SBError()
self.process = target.Launch (None, None, os.ctermid(), os.ctermid(), os.ctermid(), None, 0, False, error)
self.process = target.Launch (listener, None, None, os.ctermid(), os.ctermid(), os.ctermid(), None, 0, False, error)
self.process = target.GetProcess()
self.assertTrue(self.process.IsValid(), PROCESS_IS_VALID)
@@ -74,9 +77,6 @@ class EventAPITestCase(TestBase):
event = lldb.SBEvent()
self.assertFalse(event.IsValid(), "Event should not be valid initially")
# Get the debugger listener.
listener = self.dbg.GetListener()
# Create MyListeningThread to wait for any kind of event.
import threading
class MyListeningThread(threading.Thread):
@@ -123,7 +123,7 @@ class EventAPITestCase(TestBase):
# Now launch the process, and do not stop at the entry point.
error = lldb.SBError()
self.process = target.Launch (None, None, os.ctermid(), os.ctermid(), os.ctermid(), None, 0, False, error)
self.process = target.Launch (self.dbg.GetListener(), None, None, os.ctermid(), os.ctermid(), os.ctermid(), None, 0, False, error)
self.process = target.GetProcess()
self.assertTrue(self.process.GetState() == lldb.eStateStopped,