forked from OSchip/llvm-project
Fix TestFdLeak.py on Mac.
bug introduced in D7466. For some reason target.Launch behaves differently on linux and mac. llvm-svn: 228582
This commit is contained in:
parent
546f26acf3
commit
3f308ab127
|
@ -42,12 +42,10 @@ class AvoidsFdLeakTestCase(TestBase):
|
|||
exe = os.path.join (os.getcwd(), "a.out")
|
||||
|
||||
target = self.dbg.CreateTarget(exe)
|
||||
breakpoint = target.BreakpointCreateBySourceRegex ('Set breakpoint here', lldb.SBFileSpec ("main.c", False))
|
||||
self.assertTrue(breakpoint, VALID_BREAKPOINT)
|
||||
|
||||
listener = lldb.SBListener()
|
||||
error = lldb.SBError()
|
||||
process1 = target.Launch (listener, None, None, None, None, None,
|
||||
self.get_process_working_directory(), 0, True, # stop at entry
|
||||
error)
|
||||
process1 = target.LaunchSimple (None, None, self.get_process_working_directory())
|
||||
self.assertTrue(process1, PROCESS_IS_VALID)
|
||||
self.assertTrue(process1.GetState() == lldb.eStateStopped, "Process should have been stopped.")
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ int
|
|||
main (int argc, char const **argv)
|
||||
{
|
||||
struct stat buf;
|
||||
int i, rv = 0;
|
||||
int i, rv = 0; // Set breakpoint here.
|
||||
|
||||
// Make sure stdin/stdout/stderr exist.
|
||||
for (i = 0; i <= 2; ++i) {
|
||||
|
|
Loading…
Reference in New Issue