Improve MiStartupOptionsTestCase.test_lldbmi_executable_option_file test (MI)
authorIlia K <ki.stfu@gmail.com>
Tue, 12 May 2015 06:49:49 +0000 (06:49 +0000)
committerIlia K <ki.stfu@gmail.com>
Tue, 12 May 2015 06:49:49 +0000 (06:49 +0000)
llvm-svn: 237096

lldb/test/tools/lldb-mi/startup_options/TestMiStartupOptions.py

index abdd309..c4b9e9e 100644 (file)
@@ -25,9 +25,16 @@ class MiStartupOptionsTestCase(lldbmi_testcase.MiTestCaseBase):
         # Test that lldb-mi is ready when executable was loaded
         self.expect(self.child_prompt, exactly = True)
 
-        # Run
+        # Run to main
+        self.runCmd("-break-insert -f main")
+        self.expect("\^done,bkpt={number=\"1\"")
         self.runCmd("-exec-run")
         self.expect("\^running")
+        self.expect("\*stopped,reason=\"breakpoint-hit\"")
+
+        # Continue
+        self.runCmd("-exec-continue")
+        self.expect("\^running")
         self.expect("\*stopped,reason=\"exited-normally\"")
 
     @lldbmi_test