From 56aa294652938e892a155afb0f461aaeb46f6acf Mon Sep 17 00:00:00 2001 From: Ilia K Date: Tue, 12 May 2015 06:49:49 +0000 Subject: [PATCH] Improve MiStartupOptionsTestCase.test_lldbmi_executable_option_file test (MI) llvm-svn: 237096 --- .../lldb-mi/startup_options/TestMiStartupOptions.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lldb/test/tools/lldb-mi/startup_options/TestMiStartupOptions.py b/lldb/test/tools/lldb-mi/startup_options/TestMiStartupOptions.py index abdd30940fc8..c4b9e9e0dccd 100644 --- a/lldb/test/tools/lldb-mi/startup_options/TestMiStartupOptions.py +++ b/lldb/test/tools/lldb-mi/startup_options/TestMiStartupOptions.py @@ -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