diff options
| -rw-r--r-- | lldb/test/functionalities/avoids-fd-leak/TestFdLeak.py | 8 | ||||
| -rw-r--r-- | lldb/test/functionalities/avoids-fd-leak/main.c | 2 |
2 files changed, 4 insertions, 6 deletions
diff --git a/lldb/test/functionalities/avoids-fd-leak/TestFdLeak.py b/lldb/test/functionalities/avoids-fd-leak/TestFdLeak.py index 795b4e65192..7df81ef497f 100644 --- a/lldb/test/functionalities/avoids-fd-leak/TestFdLeak.py +++ b/lldb/test/functionalities/avoids-fd-leak/TestFdLeak.py @@ -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.") diff --git a/lldb/test/functionalities/avoids-fd-leak/main.c b/lldb/test/functionalities/avoids-fd-leak/main.c index d21f70a6287..5bdf227928e 100644 --- a/lldb/test/functionalities/avoids-fd-leak/main.c +++ b/lldb/test/functionalities/avoids-fd-leak/main.c @@ -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) { |

