mirror of
https://github.com/intel/llvm.git
synced 2026-02-08 08:57:43 +08:00
Modify test scripts to accomodate SBTarget.Launch() API change.
llvm-svn: 124828
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user