Index: test/api/check_public_api_headers/TestPublicAPIHeaders.py =================================================================== --- test/api/check_public_api_headers/TestPublicAPIHeaders.py +++ test/api/check_public_api_headers/TestPublicAPIHeaders.py @@ -79,7 +79,7 @@ lldbutil.run_break_set_by_file_and_line (self, self.source, self.line_to_break, num_expected_locations = -1) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/benchmarks/continue/TestBenchmarkContinue.py =================================================================== --- test/benchmarks/continue/TestBenchmarkContinue.py +++ test/benchmarks/continue/TestBenchmarkContinue.py @@ -37,7 +37,7 @@ bkpt = self.target().FindBreakpointByID(lldbutil.run_break_set_by_source_regexp (self, "// break here")) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/expression_command/call-function/TestCallStdStringFunction.py =================================================================== --- test/expression_command/call-function/TestCallStdStringFunction.py +++ test/expression_command/call-function/TestCallStdStringFunction.py @@ -42,7 +42,7 @@ # Some versions of GCC encode two locations for the 'return' statement in main.cpp lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=-1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.expect("print str", substrs = ['Hello world']) Index: test/expression_command/call-function/TestCallStopAndContinue.py =================================================================== --- test/expression_command/call-function/TestCallStopAndContinue.py +++ test/expression_command/call-function/TestCallStopAndContinue.py @@ -42,7 +42,7 @@ # Some versions of GCC encode two locations for the 'return' statement in main.cpp lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=-1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.func_line, num_expected_locations=-1, loc_exact=True) Index: test/expression_command/formatters/TestFormatters.py =================================================================== --- test/expression_command/formatters/TestFormatters.py +++ test/expression_command/formatters/TestFormatters.py @@ -49,7 +49,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.runCmd("script import formatters") self.runCmd("script import foosynth") Index: test/expression_command/persist_objc_pointeetype/TestPersistObjCPointeeType.py =================================================================== --- test/expression_command/persist_objc_pointeetype/TestPersistObjCPointeeType.py +++ test/expression_command/persist_objc_pointeetype/TestPersistObjCPointeeType.py @@ -44,7 +44,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.expect("p *self", substrs=['_sc_name = nil', '_sc_name2 = nil', Index: test/expression_command/persistent_ptr_update/TestPersistentPtrUpdate.py =================================================================== --- test/expression_command/persistent_ptr_update/TestPersistentPtrUpdate.py +++ test/expression_command/persistent_ptr_update/TestPersistentPtrUpdate.py @@ -40,7 +40,7 @@ self.runCmd('break set -p here') - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.runCmd("expr void* $foo = nullptr") Index: test/expression_command/persistent_types/TestPersistentTypes.py =================================================================== --- test/expression_command/persistent_types/TestPersistentTypes.py +++ test/expression_command/persistent_types/TestPersistentTypes.py @@ -19,7 +19,7 @@ self.runCmd("breakpoint set --name main") - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.runCmd("expression struct $foo { int a; int b; };") Index: test/expression_command/persistent_variables/TestPersistentVariables.py =================================================================== --- test/expression_command/persistent_variables/TestPersistentVariables.py +++ test/expression_command/persistent_variables/TestPersistentVariables.py @@ -19,7 +19,7 @@ self.runCmd("breakpoint set --source-pattern-regexp break") - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.runCmd("expression int $i = i") Index: test/expression_command/po_verbosity/TestPoVerbosity.py =================================================================== --- test/expression_command/po_verbosity/TestPoVerbosity.py +++ test/expression_command/po_verbosity/TestPoVerbosity.py @@ -48,7 +48,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.expect("expr -O -v -- foo", substrs = ['(id) $',' = 0x', '1 = 2','2 = 3;']) Index: test/expression_command/radar_8638051/Test8638051.py =================================================================== --- test/expression_command/radar_8638051/Test8638051.py +++ test/expression_command/radar_8638051/Test8638051.py @@ -19,7 +19,7 @@ self.runCmd("breakpoint set -n c") - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.expect("expression val", startstr = "(int) $0 = 1") Index: test/expression_command/radar_9531204/TestPrintfAfterUp.py =================================================================== --- test/expression_command/radar_9531204/TestPrintfAfterUp.py +++ test/expression_command/radar_9531204/TestPrintfAfterUp.py @@ -21,7 +21,7 @@ lldbutil.run_break_set_by_symbol (self, 'foo', sym_exact=True, num_expected_locations=1) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.runCmd("frame variable") Index: test/expression_command/radar_9673664/TestExprHelpExamples.py =================================================================== --- test/expression_command/radar_9673664/TestExprHelpExamples.py +++ test/expression_command/radar_9673664/TestExprHelpExamples.py @@ -28,7 +28,7 @@ lldbutil.run_break_set_by_file_and_line (self, self.main_source, self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # rdar://problem/9673664 lldb expression evaluation problem Index: test/expression_command/test/TestExprs.py =================================================================== --- test/expression_command/test/TestExprs.py +++ test/expression_command/test/TestExprs.py @@ -41,7 +41,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=False) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) @unittest2.expectedFailure("llvm.org/pr17135 APFloat::toString does not identify the correct (i.e. least) precision.") def test_floating_point_expr_commands(self): @@ -201,7 +201,7 @@ lldbutil.run_break_set_by_file_and_line(self, "main.cpp", self.line, num_expected_locations=1,loc_exact=False) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # runCmd: expression 'a' # output: (char) $0 = 'a' Index: test/expression_command/test/TestExprs2.py =================================================================== --- test/expression_command/test/TestExprs2.py +++ test/expression_command/test/TestExprs2.py @@ -27,7 +27,7 @@ lldbutil.run_break_set_by_file_and_line(self, "main.cpp", self.line, num_expected_locations=1,loc_exact=False) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # Does static casting work? self.expect("expression (int*)argv", Index: test/expression_command/two-files/TestObjCTypeQueryFromOtherCompileUnit.py =================================================================== --- test/expression_command/two-files/TestObjCTypeQueryFromOtherCompileUnit.py +++ test/expression_command/two-files/TestObjCTypeQueryFromOtherCompileUnit.py @@ -40,7 +40,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # Now do a NSArry type query from the 'main.m' compile uint. self.expect("expression (NSArray*)array_token", Index: test/functionalities/archives/TestBSDArchives.py =================================================================== --- test/functionalities/archives/TestBSDArchives.py +++ test/functionalities/archives/TestBSDArchives.py @@ -29,7 +29,7 @@ # Break inside a() by file and line first. lldbutil.run_break_set_by_file_and_line (self, "a.c", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py =================================================================== --- test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py +++ test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py @@ -111,7 +111,7 @@ # Run the program. Remove 'output.txt' if it exists. self.RemoveTempFile("output.txt") self.RemoveTempFile("output2.txt") - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # Check that the file 'output.txt' exists and contains the string "lldb". @@ -161,7 +161,7 @@ self.line]) # Run the program again, with breakpoint 1 remaining. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # We should be stopped again due to breakpoint 1. @@ -191,7 +191,7 @@ os.remove ('output-2.txt') # Run program, hit breakpoint, and hopefully write out new version of 'output-2.txt' - self.runCmd ("run", RUN_SUCCEEDED) + self.runCmd ("run", RUN_FAILED) # Check that the file 'output.txt' exists and contains the string "lldb". Index: test/functionalities/breakpoint/breakpoint_command/TestRegexpBreakCommand.py =================================================================== --- test/functionalities/breakpoint/breakpoint_command/TestRegexpBreakCommand.py +++ test/functionalities/breakpoint/breakpoint_command/TestRegexpBreakCommand.py @@ -48,7 +48,7 @@ break_results = lldbutil.run_break_set_command (self, "b %s:%d" % (full_path, self.line)) lldbutil.check_breakpoint_result (self, break_results, file_name='main.c', line_number=self.line, num_locations=1) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py =================================================================== --- test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py +++ test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py @@ -79,7 +79,7 @@ self.runCmd("breakpoint modify -c 'val == 3' 1") # Now run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The process should be stopped at this point. self.expect("process status", PROCESS_STOPPED, @@ -110,7 +110,7 @@ substrs = ["Condition:"]) # Now run the program again. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The process should be stopped at this point. self.expect("process status", PROCESS_STOPPED, Index: test/functionalities/breakpoint/breakpoint_ignore_count/TestBreakpointIgnoreCount.py =================================================================== --- test/functionalities/breakpoint/breakpoint_ignore_count/TestBreakpointIgnoreCount.py +++ test/functionalities/breakpoint/breakpoint_ignore_count/TestBreakpointIgnoreCount.py @@ -59,7 +59,7 @@ lldbutil.run_break_set_by_file_and_line (self, 'main.c', self.line1, extra_options='-i 1', num_expected_locations=1, loc_exact=True) # Now run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The process should be stopped at this point. self.expect("process status", PROCESS_STOPPED, @@ -79,7 +79,7 @@ # continue -i 1 is the same as setting the ignore count to 1 again, try that: # Now run the program. - self.runCmd("process continue -i 1", RUN_SUCCEEDED) + self.runCmd("process continue -i 1", RUN_FAILED) # The process should be stopped at this point. self.expect("process status", PROCESS_STOPPED, Index: test/functionalities/breakpoint/breakpoint_locations/TestBreakpointLocations.py =================================================================== --- test/functionalities/breakpoint/breakpoint_locations/TestBreakpointLocations.py +++ test/functionalities/breakpoint/breakpoint_locations/TestBreakpointLocations.py @@ -56,7 +56,7 @@ startstr = "3 breakpoints disabled.") # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # We should not stopped on any breakpoint at all. self.expect("process status", "No stopping on any disabled breakpoint", @@ -71,7 +71,7 @@ startstr = "1 breakpoints disabled.") # Run the program againt. We should stop on the two breakpoint locations. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # Stopped once. self.expect("thread backtrace", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/breakpoint/breakpoint_options/TestBreakpointOptions.py =================================================================== --- test/functionalities/breakpoint/breakpoint_options/TestBreakpointOptions.py +++ test/functionalities/breakpoint/breakpoint_options/TestBreakpointOptions.py @@ -44,7 +44,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line, extra_options = "-m 0", num_expected_locations = 0) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # Stopped once. self.expect("thread backtrace", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/breakpoint/dummy_target_breakpoints/TestBreakpointsWithNoTargets.py =================================================================== --- test/functionalities/breakpoint/dummy_target_breakpoints/TestBreakpointsWithNoTargets.py +++ test/functionalities/breakpoint/dummy_target_breakpoints/TestBreakpointsWithNoTargets.py @@ -58,7 +58,7 @@ "2: file = 'main.c', line = %d, exact_match = 0, locations = 1" % self.line2]) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # Stopped once. self.expect("thread backtrace", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/breakpoint/inlined_breakpoints/TestInlinedBreakpoints.py =================================================================== --- test/functionalities/breakpoint/inlined_breakpoints/TestInlinedBreakpoints.py +++ test/functionalities/breakpoint/inlined_breakpoints/TestInlinedBreakpoints.py @@ -53,7 +53,7 @@ lldbutil.run_break_set_by_file_and_line (self, "basic_type.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. # And it should break at basic_type.cpp:176. Index: test/functionalities/conditional_break/TestConditionalBreak.py =================================================================== --- test/functionalities/conditional_break/TestConditionalBreak.py +++ test/functionalities/conditional_break/TestConditionalBreak.py @@ -123,7 +123,7 @@ if self.TraceOn(): print "About to run." - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.runCmd ("break list") Index: test/functionalities/data-formatter/data-formatter-advanced/TestDataFormatterAdv.py =================================================================== --- test/functionalities/data-formatter/data-formatter-advanced/TestDataFormatterAdv.py +++ test/functionalities/data-formatter/data-formatter-advanced/TestDataFormatterAdv.py @@ -37,7 +37,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/data-formatter-categories/TestDataFormatterCategories.py =================================================================== --- test/functionalities/data-formatter/data-formatter-categories/TestDataFormatterCategories.py +++ test/functionalities/data-formatter/data-formatter-categories/TestDataFormatterCategories.py @@ -37,7 +37,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py =================================================================== --- test/functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py +++ test/functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py @@ -37,7 +37,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/data-formatter-disabling/TestDataFormatterDisabling.py =================================================================== --- test/functionalities/data-formatter/data-formatter-disabling/TestDataFormatterDisabling.py +++ test/functionalities/data-formatter/data-formatter-disabling/TestDataFormatterDisabling.py @@ -37,7 +37,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/data-formatter-enum-format/TestDataFormatterEnumFormat.py =================================================================== --- test/functionalities/data-formatter/data-formatter-enum-format/TestDataFormatterEnumFormat.py +++ test/functionalities/data-formatter/data-formatter-enum-format/TestDataFormatterEnumFormat.py @@ -37,7 +37,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/data-formatter-named-summaries/TestDataFormatterNamedSummaries.py =================================================================== --- test/functionalities/data-formatter/data-formatter-named-summaries/TestDataFormatterNamedSummaries.py +++ test/functionalities/data-formatter/data-formatter-named-summaries/TestDataFormatterNamedSummaries.py @@ -37,7 +37,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py =================================================================== --- test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py +++ test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py @@ -231,7 +231,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -262,7 +262,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -327,7 +327,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -508,7 +508,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -551,7 +551,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -607,7 +607,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/data-formatter-python-synth/TestDataFormatterPythonSynth.py =================================================================== --- test/functionalities/data-formatter/data-formatter-python-synth/TestDataFormatterPythonSynth.py +++ test/functionalities/data-formatter/data-formatter-python-synth/TestDataFormatterPythonSynth.py @@ -54,7 +54,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -210,7 +210,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line2, num_expected_locations=1, loc_exact=False) lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line3, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/data-formatter-script/TestDataFormatterScript.py =================================================================== --- test/functionalities/data-formatter/data-formatter-script/TestDataFormatterScript.py +++ test/functionalities/data-formatter/data-formatter-script/TestDataFormatterScript.py @@ -37,7 +37,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py =================================================================== --- test/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py +++ test/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py @@ -40,7 +40,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/data-formatter-smart-array/TestDataFormatterSmartArray.py =================================================================== --- test/functionalities/data-formatter/data-formatter-smart-array/TestDataFormatterSmartArray.py +++ test/functionalities/data-formatter/data-formatter-smart-array/TestDataFormatterSmartArray.py @@ -37,7 +37,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/data-formatter-stl/libcxx/initializerlist/TestInitializerList.py =================================================================== --- test/functionalities/data-formatter/data-formatter-stl/libcxx/initializerlist/TestInitializerList.py +++ test/functionalities/data-formatter/data-formatter-stl/libcxx/initializerlist/TestInitializerList.py @@ -38,7 +38,7 @@ bkpt = self.target().FindBreakpointByID(lldbutil.run_break_set_by_source_regexp (self, "Set break point at this line.")) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/data-formatter-stl/libcxx/iterator/TestDataFormatterLibccIterator.py =================================================================== --- test/functionalities/data-formatter/data-formatter-stl/libcxx/iterator/TestDataFormatterLibccIterator.py +++ test/functionalities/data-formatter/data-formatter-stl/libcxx/iterator/TestDataFormatterLibccIterator.py @@ -39,7 +39,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=-1) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/data-formatter-stl/libcxx/list/TestDataFormatterLibcxxList.py =================================================================== --- test/functionalities/data-formatter/data-formatter-stl/libcxx/list/TestDataFormatterLibcxxList.py +++ test/functionalities/data-formatter/data-formatter-stl/libcxx/list/TestDataFormatterLibcxxList.py @@ -41,7 +41,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=-1) lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line2, num_expected_locations=-1) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/data-formatter-stl/libcxx/map/TestDataFormatterLibccMap.py =================================================================== --- test/functionalities/data-formatter/data-formatter-stl/libcxx/map/TestDataFormatterLibccMap.py +++ test/functionalities/data-formatter/data-formatter-stl/libcxx/map/TestDataFormatterLibccMap.py @@ -37,7 +37,7 @@ bkpt = self.target().FindBreakpointByID(lldbutil.run_break_set_by_source_regexp (self, "Set break point at this line.")) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/data-formatter-stl/libcxx/multimap/TestDataFormatterLibccMultiMap.py =================================================================== --- test/functionalities/data-formatter/data-formatter-stl/libcxx/multimap/TestDataFormatterLibccMultiMap.py +++ test/functionalities/data-formatter/data-formatter-stl/libcxx/multimap/TestDataFormatterLibccMultiMap.py @@ -37,7 +37,7 @@ bkpt = self.target().FindBreakpointByID(lldbutil.run_break_set_by_source_regexp (self, "Set break point at this line.")) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/data-formatter-stl/libcxx/multiset/TestDataFormatterLibcxxMultiSet.py =================================================================== --- test/functionalities/data-formatter/data-formatter-stl/libcxx/multiset/TestDataFormatterLibcxxMultiSet.py +++ test/functionalities/data-formatter/data-formatter-stl/libcxx/multiset/TestDataFormatterLibcxxMultiSet.py @@ -37,7 +37,7 @@ bkpt = self.target().FindBreakpointByID(lldbutil.run_break_set_by_source_regexp (self, "Set break point at this line.")) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/data-formatter-stl/libcxx/set/TestDataFormatterLibcxxSet.py =================================================================== --- test/functionalities/data-formatter/data-formatter-stl/libcxx/set/TestDataFormatterLibcxxSet.py +++ test/functionalities/data-formatter/data-formatter-stl/libcxx/set/TestDataFormatterLibcxxSet.py @@ -37,7 +37,7 @@ bkpt = self.target().FindBreakpointByID(lldbutil.run_break_set_by_source_regexp (self, "Set break point at this line.")) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/data-formatter-stl/libcxx/string/TestDataFormatterLibcxxString.py =================================================================== --- test/functionalities/data-formatter/data-formatter-stl/libcxx/string/TestDataFormatterLibcxxString.py +++ test/functionalities/data-formatter/data-formatter-stl/libcxx/string/TestDataFormatterLibcxxString.py @@ -40,7 +40,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=-1) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/data-formatter-stl/libcxx/unordered/TestDataFormatterUnordered.py =================================================================== --- test/functionalities/data-formatter/data-formatter-stl/libcxx/unordered/TestDataFormatterUnordered.py +++ test/functionalities/data-formatter/data-formatter-stl/libcxx/unordered/TestDataFormatterUnordered.py @@ -40,7 +40,7 @@ lldbutil.run_break_set_by_source_regexp (self, "Set break point at this line.") - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/data-formatter-stl/libcxx/vbool/TestDataFormatterLibcxxVBool.py =================================================================== --- test/functionalities/data-formatter/data-formatter-stl/libcxx/vbool/TestDataFormatterLibcxxVBool.py +++ test/functionalities/data-formatter/data-formatter-stl/libcxx/vbool/TestDataFormatterLibcxxVBool.py @@ -39,7 +39,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=-1) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/data-formatter-stl/libcxx/vector/TestDataFormatterLibcxxVector.py =================================================================== --- test/functionalities/data-formatter/data-formatter-stl/libcxx/vector/TestDataFormatterLibcxxVector.py +++ test/functionalities/data-formatter/data-formatter-stl/libcxx/vector/TestDataFormatterLibcxxVector.py @@ -37,7 +37,7 @@ bkpt = self.target().FindBreakpointByID(lldbutil.run_break_set_by_source_regexp (self, "break here")) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/data-formatter-stl/libstdcpp/iterator/TestDataFormatterStdIterator.py =================================================================== --- test/functionalities/data-formatter/data-formatter-stl/libstdcpp/iterator/TestDataFormatterStdIterator.py +++ test/functionalities/data-formatter/data-formatter-stl/libstdcpp/iterator/TestDataFormatterStdIterator.py @@ -39,7 +39,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=-1) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/data-formatter-stl/libstdcpp/list/TestDataFormatterStdList.py =================================================================== --- test/functionalities/data-formatter/data-formatter-stl/libstdcpp/list/TestDataFormatterStdList.py +++ test/functionalities/data-formatter/data-formatter-stl/libstdcpp/list/TestDataFormatterStdList.py @@ -40,7 +40,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=-1) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -162,7 +162,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.final_line, num_expected_locations=-1) - self.runCmd("c", RUN_SUCCEEDED) + self.runCmd("c", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/data-formatter-stl/libstdcpp/map/TestDataFormatterStdMap.py =================================================================== --- test/functionalities/data-formatter/data-formatter-stl/libstdcpp/map/TestDataFormatterStdMap.py +++ test/functionalities/data-formatter/data-formatter-stl/libstdcpp/map/TestDataFormatterStdMap.py @@ -40,7 +40,7 @@ lldbutil.run_break_set_by_source_regexp (self, "Set break point at this line.") - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/data-formatter-stl/libstdcpp/string/TestDataFormatterStdString.py =================================================================== --- test/functionalities/data-formatter/data-formatter-stl/libstdcpp/string/TestDataFormatterStdString.py +++ test/functionalities/data-formatter/data-formatter-stl/libstdcpp/string/TestDataFormatterStdString.py @@ -39,7 +39,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=-1) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vbool/TestDataFormatterStdVBool.py =================================================================== --- test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vbool/TestDataFormatterStdVBool.py +++ test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vbool/TestDataFormatterStdVBool.py @@ -42,7 +42,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=-1) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vector/TestDataFormatterStdVector.py =================================================================== --- test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vector/TestDataFormatterStdVector.py +++ test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vector/TestDataFormatterStdVector.py @@ -39,7 +39,7 @@ lldbutil.run_break_set_by_source_regexp (self, "Set break point at this line.") - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/data-formatter-synth/TestDataFormatterSynth.py =================================================================== --- test/functionalities/data-formatter/data-formatter-synth/TestDataFormatterSynth.py +++ test/functionalities/data-formatter/data-formatter-synth/TestDataFormatterSynth.py @@ -38,7 +38,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/data-formatter-synthval/TestDataFormatterSynthVal.py =================================================================== --- test/functionalities/data-formatter/data-formatter-synthval/TestDataFormatterSynthVal.py +++ test/functionalities/data-formatter/data-formatter-synthval/TestDataFormatterSynthVal.py @@ -39,7 +39,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/format-propagation/TestFormatPropagation.py =================================================================== --- test/functionalities/data-formatter/format-propagation/TestFormatPropagation.py +++ test/functionalities/data-formatter/format-propagation/TestFormatPropagation.py @@ -39,7 +39,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/frameformat_smallstruct/TestFrameFormatSmallStruct.py =================================================================== --- test/functionalities/data-formatter/frameformat_smallstruct/TestFrameFormatSmallStruct.py +++ test/functionalities/data-formatter/frameformat_smallstruct/TestFrameFormatSmallStruct.py @@ -37,7 +37,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/ptr_ref_typedef/TestPtrRef2Typedef.py =================================================================== --- test/functionalities/data-formatter/ptr_ref_typedef/TestPtrRef2Typedef.py +++ test/functionalities/data-formatter/ptr_ref_typedef/TestPtrRef2Typedef.py @@ -37,7 +37,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/rdar-10449092/Test-rdar-10449092.py =================================================================== --- test/functionalities/data-formatter/rdar-10449092/Test-rdar-10449092.py +++ test/functionalities/data-formatter/rdar-10449092/Test-rdar-10449092.py @@ -38,7 +38,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/rdar-10642615/Test-rdar-10642615.py =================================================================== --- test/functionalities/data-formatter/rdar-10642615/Test-rdar-10642615.py +++ test/functionalities/data-formatter/rdar-10642615/Test-rdar-10642615.py @@ -39,7 +39,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/rdar-10887661/TestRdar10887661.py =================================================================== --- test/functionalities/data-formatter/rdar-10887661/TestRdar10887661.py +++ test/functionalities/data-formatter/rdar-10887661/TestRdar10887661.py @@ -39,7 +39,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/rdar-11086338/TestRdar11086338.py =================================================================== --- test/functionalities/data-formatter/rdar-11086338/TestRdar11086338.py +++ test/functionalities/data-formatter/rdar-11086338/TestRdar11086338.py @@ -39,7 +39,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/rdar-11628688/TestFormattersBoolRefPtr.py =================================================================== --- test/functionalities/data-formatter/rdar-11628688/TestFormattersBoolRefPtr.py +++ test/functionalities/data-formatter/rdar-11628688/TestFormattersBoolRefPtr.py @@ -39,7 +39,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.mm", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/rdar-11773899/TestFormattersBoolRefPtr.py =================================================================== --- test/functionalities/data-formatter/rdar-11773899/TestFormattersBoolRefPtr.py +++ test/functionalities/data-formatter/rdar-11773899/TestFormattersBoolRefPtr.py @@ -39,7 +39,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.mm", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/rdar-11988289/TestRdar 11988289.py =================================================================== --- test/functionalities/data-formatter/rdar-11988289/TestRdar 11988289.py +++ test/functionalities/data-formatter/rdar-11988289/TestRdar 11988289.py @@ -39,7 +39,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/rdar-12437442/TestRdar12437442.py =================================================================== --- test/functionalities/data-formatter/rdar-12437442/TestRdar12437442.py +++ test/functionalities/data-formatter/rdar-12437442/TestRdar12437442.py @@ -39,7 +39,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/rdar-12529957/TestRdar12529957.py =================================================================== --- test/functionalities/data-formatter/rdar-12529957/TestRdar12529957.py +++ test/functionalities/data-formatter/rdar-12529957/TestRdar12529957.py @@ -39,7 +39,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/rdar-13338477/Test-rdar-13338477.py =================================================================== --- test/functionalities/data-formatter/rdar-13338477/Test-rdar-13338477.py +++ test/functionalities/data-formatter/rdar-13338477/Test-rdar-13338477.py @@ -38,7 +38,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/rdar-3534688/TestFormattersOneIsSingular.py =================================================================== --- test/functionalities/data-formatter/rdar-3534688/TestFormattersOneIsSingular.py +++ test/functionalities/data-formatter/rdar-3534688/TestFormattersOneIsSingular.py @@ -39,7 +39,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/rdar-9973865/Test-rdar-9973865.py =================================================================== --- test/functionalities/data-formatter/rdar-9973865/Test-rdar-9973865.py +++ test/functionalities/data-formatter/rdar-9973865/Test-rdar-9973865.py @@ -39,7 +39,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/rdar-9973992/Test-rdar-9973992.py =================================================================== --- test/functionalities/data-formatter/rdar-9973992/Test-rdar-9973992.py +++ test/functionalities/data-formatter/rdar-9973992/Test-rdar-9973992.py @@ -38,7 +38,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/rdar-9974002/Test-rdar-9974002.py =================================================================== --- test/functionalities/data-formatter/rdar-9974002/Test-rdar-9974002.py +++ test/functionalities/data-formatter/rdar-9974002/Test-rdar-9974002.py @@ -41,7 +41,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/refpointer-recursion/TestDataFormatterRefPtrRecursion.py =================================================================== --- test/functionalities/data-formatter/refpointer-recursion/TestDataFormatterRefPtrRecursion.py +++ test/functionalities/data-formatter/refpointer-recursion/TestDataFormatterRefPtrRecursion.py @@ -37,7 +37,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/user-format-vs-summary/TestUserFormatVsSummary.py =================================================================== --- test/functionalities/data-formatter/user-format-vs-summary/TestUserFormatVsSummary.py +++ test/functionalities/data-formatter/user-format-vs-summary/TestUserFormatVsSummary.py @@ -37,7 +37,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/varscript_formatting/TestDataFormatterVarScriptFormatting.py =================================================================== --- test/functionalities/data-formatter/varscript_formatting/TestDataFormatterVarScriptFormatting.py +++ test/functionalities/data-formatter/varscript_formatting/TestDataFormatterVarScriptFormatting.py @@ -39,7 +39,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/data-formatter/vector-types/TestVectorTypesFormatting.py =================================================================== --- test/functionalities/data-formatter/vector-types/TestVectorTypesFormatting.py +++ test/functionalities/data-formatter/vector-types/TestVectorTypesFormatting.py @@ -40,7 +40,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/dead-strip/TestDeadStrip.py =================================================================== --- test/functionalities/dead-strip/TestDeadStrip.py +++ test/functionalities/dead-strip/TestDeadStrip.py @@ -40,7 +40,7 @@ # Break by function name f3 (live code). lldbutil.run_break_set_by_symbol (self, "f3", num_expected_locations=1, module_name="a.out") - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint (breakpoint #1). self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/inferior-assert/TestInferiorAssert.py =================================================================== --- test/functionalities/inferior-assert/TestInferiorAssert.py +++ test/functionalities/inferior-assert/TestInferiorAssert.py @@ -105,7 +105,7 @@ exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) stop_reason = self.check_stop_reason() # And it should report a backtrace that includes the assert site. @@ -145,7 +145,7 @@ exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.check_stop_reason() # lldb should be able to read from registers from the inferior after asserting. @@ -173,7 +173,7 @@ for frame in thread: self.assertTrue(frame.IsValid(), "current frame is valid") - self.runCmd("frame select " + str(frame.GetFrameID()), RUN_SUCCEEDED) + self.runCmd("frame select " + str(frame.GetFrameID()), RUN_FAILED) # Don't expect the function name to be in the disassembly as the assert # function might be a no-return function where the PC is past the end @@ -196,7 +196,7 @@ if 'main' == frame.GetFunctionName(): frame_id = frame.GetFrameID() - self.runCmd("frame select " + str(frame_id), RUN_SUCCEEDED) + self.runCmd("frame select " + str(frame_id), RUN_FAILED) self.expect("p argc", substrs = ['(int)', ' = 1']) self.expect("p hello_world", substrs = ['Hello']) self.expect("p argv[0]", substrs = ['a.out']) Index: test/functionalities/inferior-changed/TestInferiorChanged.py =================================================================== --- test/functionalities/inferior-changed/TestInferiorChanged.py +++ test/functionalities/inferior-changed/TestInferiorChanged.py @@ -47,7 +47,7 @@ self.exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + self.exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) if self.platformIsDarwin(): stop_reason = 'stop reason = EXC_BAD_ACCESS' @@ -70,7 +70,7 @@ # Prod the lldb-platform that we have a newly built inferior ready. if lldb.lldbtest_remote_sandbox: self.runCmd("file " + self.exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.runCmd("process status") if self.platformIsDarwin(): @@ -84,7 +84,7 @@ # Break inside the main. lldbutil.run_break_set_by_file_and_line (self, "main2.c", self.line2, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/inferior-crashing/TestInferiorCrashing.py =================================================================== --- test/functionalities/inferior-crashing/TestInferiorCrashing.py +++ test/functionalities/inferior-crashing/TestInferiorCrashing.py @@ -115,7 +115,7 @@ exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) stop_reason = self.check_stop_reason() # And it should report the correct line number. @@ -151,7 +151,7 @@ exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.check_stop_reason() # lldb should be able to read from registers from the inferior after crashing. @@ -162,7 +162,7 @@ exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.check_stop_reason() # The lldb expression interpreter should be able to read from addresses of the inferior after a crash. @@ -178,7 +178,7 @@ self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) self.set_breakpoint(self.line) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, substrs = ['main.c:%d' % self.line, @@ -206,7 +206,7 @@ exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.check_stop_reason() self.runCmd("next") @@ -217,7 +217,7 @@ exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.check_stop_reason() # The lldb expression interpreter should be able to read from addresses of the inferior after a crash. Index: test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py =================================================================== --- test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py +++ test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py @@ -111,7 +111,7 @@ exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) stop_reason = self.check_stop_reason() # And it should report a backtrace that includes main and the crash site. @@ -151,7 +151,7 @@ exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.check_stop_reason() # lldb should be able to read from registers from the inferior after crashing. @@ -162,7 +162,7 @@ exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.check_stop_reason() # The lldb expression interpreter should be able to read from addresses of the inferior after a crash. @@ -175,7 +175,7 @@ self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) self.set_breakpoint(self.line) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, substrs = ['main.c:%d' % self.line, @@ -201,7 +201,7 @@ exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.check_stop_reason() expected_state = 'exited' # Provide the exit code. @@ -221,7 +221,7 @@ exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.check_stop_reason() # The lldb expression interpreter should be able to read from addresses of the inferior after a crash. Index: test/functionalities/load_unload/TestLoadUnload.py =================================================================== --- test/functionalities/load_unload/TestLoadUnload.py +++ test/functionalities/load_unload/TestLoadUnload.py @@ -157,7 +157,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # Make sure that a_function does not exist at this point. self.expect("image lookup -n a_function", "a_function should not exist yet", @@ -208,7 +208,7 @@ # Break by function name a_function (not yet loaded). lldbutil.run_break_set_by_symbol (self, "a_function", num_expected_locations=0) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint and at a_function. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -249,7 +249,7 @@ # Break by function name a_function (not yet loaded). lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint and at a_function. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/longjmp/TestLongjmp.py =================================================================== --- test/functionalities/longjmp/TestLongjmp.py +++ test/functionalities/longjmp/TestLongjmp.py @@ -47,7 +47,7 @@ # Break in main(). lldbutil.run_break_set_by_symbol (self, symbol, num_expected_locations=-1) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -61,21 +61,21 @@ def step_out(self): self.start_test("do_jump") - self.runCmd("thread step-out", RUN_SUCCEEDED) + self.runCmd("thread step-out", RUN_FAILED) self.check_status() def step_over(self): self.start_test("do_jump") - self.runCmd("thread step-over", RUN_SUCCEEDED) - self.runCmd("thread step-over", RUN_SUCCEEDED) + self.runCmd("thread step-over", RUN_FAILED) + self.runCmd("thread step-over", RUN_FAILED) self.check_status() def step_back_out(self): self.start_test("main") - self.runCmd("thread step-over", RUN_SUCCEEDED) - self.runCmd("thread step-in", RUN_SUCCEEDED) - self.runCmd("thread step-out", RUN_SUCCEEDED) + self.runCmd("thread step-over", RUN_FAILED) + self.runCmd("thread step-in", RUN_FAILED) + self.runCmd("thread step-out", RUN_FAILED) self.check_status() if __name__ == '__main__': Index: test/functionalities/memory/read/TestMemoryRead.py =================================================================== --- test/functionalities/memory/read/TestMemoryRead.py +++ test/functionalities/memory/read/TestMemoryRead.py @@ -41,7 +41,7 @@ # Break in main() aftre the variables are assigned values. lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/non-overlapping-index-variable-i/TestIndexVariable.py =================================================================== --- test/functionalities/non-overlapping-index-variable-i/TestIndexVariable.py +++ test/functionalities/non-overlapping-index-variable-i/TestIndexVariable.py @@ -29,7 +29,7 @@ lldbutil.run_break_set_by_file_and_line (self, self.source, self.line_to_break, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/recursion/TestValueObjectRecursion.py =================================================================== --- test/functionalities/recursion/TestValueObjectRecursion.py +++ test/functionalities/recursion/TestValueObjectRecursion.py @@ -37,7 +37,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/register/TestRegisters.py =================================================================== --- test/functionalities/register/TestRegisters.py +++ test/functionalities/register/TestRegisters.py @@ -75,7 +75,7 @@ # Break in main(). lldbutil.run_break_set_by_symbol (self, "main", num_expected_locations=-1) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -102,7 +102,7 @@ if self.platform != "": self.log_file = os.path.join(os.getcwd(), 'TestRegisters.log') - self.runCmd("log enable " + self.platform + " " + str(category) + " registers -v -f " + self.log_file, RUN_SUCCEEDED) + self.runCmd("log enable " + self.platform + " " + str(category) + " registers -v -f " + self.log_file, RUN_FAILED) if not self.has_teardown: self.has_teardown = True self.addTearDownHook(self.remove_log) Index: test/functionalities/set-data/TestSetData.py =================================================================== --- test/functionalities/set-data/TestSetData.py +++ test/functionalities/set-data/TestSetData.py @@ -27,7 +27,7 @@ self.runCmd("br s -p First"); self.runCmd("br s -p Second"); - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.expect("p myFoo.x", VARIABLES_DISPLAYED_CORRECTLY, substrs = ['2']) Index: test/functionalities/target_command/TestTargetCommand.py =================================================================== --- test/functionalities/target_command/TestTargetCommand.py +++ test/functionalities/target_command/TestTargetCommand.py @@ -82,15 +82,15 @@ break; self.runCmd("target create " + exe_a, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.runCmd("target create " + exe_b, CURRENT_EXECUTABLE_SET) lldbutil.run_break_set_by_file_and_line (self, 'b.c', self.line_b, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.runCmd("target create " + exe_c, CURRENT_EXECUTABLE_SET) lldbutil.run_break_set_by_file_and_line (self, 'c.c', self.line_c, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.runCmd("target list") Index: test/functionalities/thread/TestNumThreads.py =================================================================== --- test/functionalities/thread/TestNumThreads.py +++ test/functionalities/thread/TestNumThreads.py @@ -44,7 +44,7 @@ substrs = ["1: file = 'main.cpp', line = %d, exact_match = 0, locations = 1" % self.line]) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # Stopped once. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/thread/break_after_join/TestBreakAfterJoin.py =================================================================== --- test/functionalities/thread/break_after_join/TestBreakAfterJoin.py +++ test/functionalities/thread/break_after_join/TestBreakAfterJoin.py @@ -48,7 +48,7 @@ substrs = ["1: file = 'main.cpp', line = %d, locations = 1" % self.breakpoint]) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/thread/concurrent_events/TestConcurrentEvents.py =================================================================== --- test/functionalities/thread/concurrent_events/TestConcurrentEvents.py +++ test/functionalities/thread/concurrent_events/TestConcurrentEvents.py @@ -425,7 +425,7 @@ self.expect("breakpoint list -f", "Breakpoint locations shown correctly", substrs = expected_bps) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # Check we are at line self.setup_breakpoint self.expect("thread backtrace", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/thread/create_during_step/TestCreateDuringStep.py =================================================================== --- test/functionalities/thread/create_during_step/TestCreateDuringStep.py +++ test/functionalities/thread/create_during_step/TestCreateDuringStep.py @@ -95,7 +95,7 @@ substrs = ["1: file = 'main.cpp', line = %d, locations = 1" % self.breakpoint]) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/thread/exit_during_break/TestExitDuringBreak.py =================================================================== --- test/functionalities/thread/exit_during_break/TestExitDuringBreak.py +++ test/functionalities/thread/exit_during_break/TestExitDuringBreak.py @@ -48,7 +48,7 @@ substrs = ["1: file = 'main.cpp', line = %d, locations = 1" % self.breakpoint]) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/thread/exit_during_step/TestExitDuringStep.py =================================================================== --- test/functionalities/thread/exit_during_step/TestExitDuringStep.py +++ test/functionalities/thread/exit_during_step/TestExitDuringStep.py @@ -109,7 +109,7 @@ substrs = ["1: file = 'main.cpp', line = %d, exact_match = 0, locations = 1" % self.breakpoint]) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/thread/jump/TestThreadJump.py =================================================================== --- test/functionalities/thread/jump/TestThreadJump.py +++ test/functionalities/thread/jump/TestThreadJump.py @@ -46,7 +46,7 @@ self.mark5 = line_number('other.cpp', '// other marker') lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.mark3, num_expected_locations=1) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint 1. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT + " 1", Index: test/functionalities/thread/multi_break/TestMultipleBreakpoints.py =================================================================== --- test/functionalities/thread/multi_break/TestMultipleBreakpoints.py +++ test/functionalities/thread/multi_break/TestMultipleBreakpoints.py @@ -48,7 +48,7 @@ substrs = ["1: file = 'main.cpp', line = %d, locations = 1" % self.breakpoint]) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. # The breakpoint may be hit in either thread 2 or thread 3. Index: test/functionalities/thread/state/TestThreadStates.py =================================================================== --- test/functionalities/thread/state/TestThreadStates.py +++ test/functionalities/thread/state/TestThreadStates.py @@ -105,7 +105,7 @@ substrs = ["1: file = 'main.c', line = %d, locations = 1" % self.break_1]) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -146,7 +146,7 @@ substrs = ["1: file = 'main.c', line = %d, exact_match = 0, locations = 1" % self.break_1]) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -195,7 +195,7 @@ substrs = ["1: file = 'main.c', line = %d, locations = 1" % self.break_1]) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -239,7 +239,7 @@ substrs = ["1: file = 'main.c', line = %d, locations = 1" % self.break_1]) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -294,7 +294,7 @@ "2: file = 'main.c', line = %d, locations = 1" % self.break_2]) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/thread/step_out/TestThreadStepOut.py =================================================================== --- test/functionalities/thread/step_out/TestThreadStepOut.py +++ test/functionalities/thread/step_out/TestThreadStepOut.py @@ -113,7 +113,7 @@ substrs = ["1: file = 'main.cpp', line = %d, exact_match = 0, locations = 1" % self.breakpoint]) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # Get the target process self.inferior_target = self.dbg.GetSelectedTarget() Index: test/functionalities/thread/thread_exit/TestThreadExit.py =================================================================== --- test/functionalities/thread/thread_exit/TestThreadExit.py +++ test/functionalities/thread/thread_exit/TestThreadExit.py @@ -56,7 +56,7 @@ "4: file = 'main.cpp', line = %d, exact_match = 0, locations = 1" % self.break_4]) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint 1. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT + " 1", Index: test/functionalities/type_completion/TestTypeCompletion.py =================================================================== --- test/functionalities/type_completion/TestTypeCompletion.py +++ test/functionalities/type_completion/TestTypeCompletion.py @@ -37,7 +37,7 @@ lldbutil.run_break_set_by_source_regexp (self, "// Set break point at this line.") - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/value_md5_crash/TestValueMD5Crash.py =================================================================== --- test/functionalities/value_md5_crash/TestValueMD5Crash.py +++ test/functionalities/value_md5_crash/TestValueMD5Crash.py @@ -37,7 +37,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/functionalities/watchpoint/hello_watchlocation/TestWatchLocation.py =================================================================== --- test/functionalities/watchpoint/hello_watchlocation/TestWatchLocation.py +++ test/functionalities/watchpoint/hello_watchlocation/TestWatchLocation.py @@ -51,7 +51,7 @@ lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1, loc_exact=False) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. Index: test/functionalities/watchpoint/hello_watchpoint/TestMyFirstWatchpoint.py =================================================================== --- test/functionalities/watchpoint/hello_watchpoint/TestMyFirstWatchpoint.py +++ test/functionalities/watchpoint/hello_watchpoint/TestMyFirstWatchpoint.py @@ -51,7 +51,7 @@ lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. Index: test/functionalities/watchpoint/multiple_threads/TestWatchpointMultipleThreads.py =================================================================== --- test/functionalities/watchpoint/multiple_threads/TestWatchpointMultipleThreads.py +++ test/functionalities/watchpoint/multiple_threads/TestWatchpointMultipleThreads.py @@ -59,7 +59,7 @@ lldbutil.run_break_set_by_file_and_line (self, None, self.first_stop, num_expected_locations=1) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. @@ -103,7 +103,7 @@ lldbutil.run_break_set_by_file_and_line (self, None, self.first_stop, num_expected_locations=1) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. Index: test/functionalities/watchpoint/variable_out_of_scope/TestWatchedVarHitWhenInScope.py =================================================================== --- test/functionalities/watchpoint/variable_out_of_scope/TestWatchedVarHitWhenInScope.py +++ test/functionalities/watchpoint/variable_out_of_scope/TestWatchedVarHitWhenInScope.py @@ -53,7 +53,7 @@ lldbutil.run_break_set_by_symbol (self, "main", num_expected_locations=-1) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. Index: test/functionalities/watchpoint/watchpoint_commands/TestWatchpointCommands.py =================================================================== --- test/functionalities/watchpoint/watchpoint_commands/TestWatchpointCommands.py +++ test/functionalities/watchpoint/watchpoint_commands/TestWatchpointCommands.py @@ -110,7 +110,7 @@ lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. @@ -165,7 +165,7 @@ lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. @@ -205,7 +205,7 @@ lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. @@ -249,7 +249,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.m") # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. @@ -304,7 +304,7 @@ lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. @@ -344,7 +344,7 @@ lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. @@ -388,7 +388,7 @@ lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. @@ -443,7 +443,7 @@ lldbutil.run_break_set_by_file_and_line (self, None, self.line2, num_expected_locations=1) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. Index: test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py =================================================================== --- test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py +++ test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py @@ -64,7 +64,7 @@ lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. @@ -113,7 +113,7 @@ lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. Index: test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandPython.py =================================================================== --- test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandPython.py +++ test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandPython.py @@ -53,7 +53,7 @@ # (self.source, self.line))# # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. Index: test/functionalities/watchpoint/watchpoint_commands/condition/TestWatchpointConditionCmd.py =================================================================== --- test/functionalities/watchpoint/watchpoint_commands/condition/TestWatchpointConditionCmd.py +++ test/functionalities/watchpoint/watchpoint_commands/condition/TestWatchpointConditionCmd.py @@ -49,7 +49,7 @@ lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. Index: test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py =================================================================== --- test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py +++ test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py @@ -48,7 +48,7 @@ lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. Index: test/functionalities/watchpoint/watchpoint_set_command/TestWatchpointSetErrorCases.py =================================================================== --- test/functionalities/watchpoint/watchpoint_set_command/TestWatchpointSetErrorCases.py +++ test/functionalities/watchpoint/watchpoint_set_command/TestWatchpointSetErrorCases.py @@ -37,7 +37,7 @@ lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. Index: test/lang/c/array_types/TestArrayTypes.py =================================================================== --- test/lang/c/array_types/TestArrayTypes.py +++ test/lang/c/array_types/TestArrayTypes.py @@ -51,7 +51,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line, num_expected_locations=1, loc_exact=False) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The test suite sometimes shows that the process has exited without stopping. # Index: test/lang/c/bitfields/TestBitfields.py =================================================================== --- test/lang/c/bitfields/TestBitfields.py +++ test/lang/c/bitfields/TestBitfields.py @@ -54,7 +54,7 @@ # Break inside the main. lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/lang/c/blocks/TestBlocks.py =================================================================== --- test/lang/c/blocks/TestBlocks.py +++ test/lang/c/blocks/TestBlocks.py @@ -43,9 +43,9 @@ def wait_for_breakpoint(self): if self.is_started == False: self.is_started = True - self.runCmd("process launch", RUN_SUCCEEDED) + self.runCmd("process launch", RUN_FAILED) else: - self.runCmd("process continue", RUN_SUCCEEDED) + self.runCmd("process continue", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/lang/c/const_variables/TestConstVariables.py =================================================================== --- test/lang/c/const_variables/TestConstVariables.py +++ test/lang/c/const_variables/TestConstVariables.py @@ -36,7 +36,7 @@ # Break inside the main. lldbutil.run_break_set_by_symbol (self, "main", num_expected_locations=1) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/lang/c/enum_types/TestEnumTypes.py =================================================================== --- test/lang/c/enum_types/TestEnumTypes.py +++ test/lang/c/enum_types/TestEnumTypes.py @@ -39,7 +39,7 @@ # Break inside the main. bkpt_id = lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/lang/c/forward/TestForwardDeclaration.py =================================================================== --- test/lang/c/forward/TestForwardDeclaration.py +++ test/lang/c/forward/TestForwardDeclaration.py @@ -35,7 +35,7 @@ # Break inside the foo function which takes a bar_ptr argument. lldbutil.run_break_set_by_symbol (self, "foo", num_expected_locations=1, sym_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/lang/c/function_types/TestFunctionTypes.py =================================================================== --- test/lang/c/function_types/TestFunctionTypes.py +++ test/lang/c/function_types/TestFunctionTypes.py @@ -49,7 +49,7 @@ # Break inside the main. lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/lang/c/modules/TestCModules.py =================================================================== --- test/lang/c/modules/TestCModules.py +++ test/lang/c/modules/TestCModules.py @@ -48,7 +48,7 @@ # Break inside the foo function which takes a bar_ptr argument. lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/lang/c/register_variables/TestRegisterVariables.py =================================================================== --- test/lang/c/register_variables/TestRegisterVariables.py +++ test/lang/c/register_variables/TestRegisterVariables.py @@ -40,7 +40,7 @@ #################### # First breakpoint - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/lang/c/set_values/TestSetValues.py =================================================================== --- test/lang/c/set_values/TestSetValues.py +++ test/lang/c/set_values/TestSetValues.py @@ -49,7 +49,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line5, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/lang/c/stepping/TestThreadStepping.py =================================================================== --- test/lang/c/stepping/TestThreadStepping.py +++ test/lang/c/stepping/TestThreadStepping.py @@ -44,7 +44,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line1, num_expected_locations=1, loc_exact=True) # Now run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The process should be stopped at this point. self.expect("process status", PROCESS_STOPPED, Index: test/lang/c/strings/TestCStrings.py =================================================================== --- test/lang/c/strings/TestCStrings.py +++ test/lang/c/strings/TestCStrings.py @@ -34,7 +34,7 @@ self.set_breakpoint(line_number('main.c', '// breakpoint 1')) - self.runCmd("process launch", RUN_SUCCEEDED) + self.runCmd("process launch", RUN_FAILED) self.expect("expression -- a[2]", patterns = ["\((const )?char\) \$0 = 'c'"]) Index: test/lang/c/tls_globals/TestTlsGlobals.py =================================================================== --- test/lang/c/tls_globals/TestTlsGlobals.py +++ test/lang/c/tls_globals/TestTlsGlobals.py @@ -44,7 +44,7 @@ line1 = line_number('main.c', '// thread breakpoint') lldbutil.run_break_set_by_file_and_line (self, "main.c", line1, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.runCmd("process status", "Get process status") @@ -65,7 +65,7 @@ # Continue on the main thread line2 = line_number('main.c', '// main breakpoint') lldbutil.run_break_set_by_file_and_line (self, "main.c", line2, num_expected_locations=1, loc_exact=True) - self.runCmd("continue", RUN_SUCCEEDED) + self.runCmd("continue", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.runCmd("process status", "Get process status") Index: test/lang/cpp/bool/TestCPPBool.py =================================================================== --- test/lang/cpp/bool/TestCPPBool.py +++ test/lang/cpp/bool/TestCPPBool.py @@ -36,7 +36,7 @@ self.set_breakpoint(line_number('main.cpp', '// breakpoint 1')) - self.runCmd("process launch", RUN_SUCCEEDED) + self.runCmd("process launch", RUN_FAILED) self.expect("expression -- bool second_bool = my_bool; second_bool", startstr = "(bool) $0 = false") Index: test/lang/cpp/call-function/TestCallCPPFunction.py =================================================================== --- test/lang/cpp/call-function/TestCallCPPFunction.py +++ test/lang/cpp/call-function/TestCallCPPFunction.py @@ -33,7 +33,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("process launch", RUN_SUCCEEDED) + self.runCmd("process launch", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", Index: test/lang/cpp/class_static/TestStaticVariables.py =================================================================== --- test/lang/cpp/class_static/TestStaticVariables.py +++ test/lang/cpp/class_static/TestStaticVariables.py @@ -59,7 +59,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/lang/cpp/class_types/TestClassTypes.py =================================================================== --- test/lang/cpp/class_types/TestClassTypes.py +++ test/lang/cpp/class_types/TestClassTypes.py @@ -93,7 +93,7 @@ # Break on the ctor function of class C. lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=-1) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The test suite sometimes shows that the process has exited without stopping. # @@ -189,7 +189,7 @@ # Make the test case more robust by using line number to break, instead. lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=-1) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/lang/cpp/class_types/TestClassTypesDisassembly.py =================================================================== --- test/lang/cpp/class_types/TestClassTypesDisassembly.py +++ test/lang/cpp/class_types/TestClassTypesDisassembly.py @@ -55,7 +55,7 @@ # Break on the ctor function of class C. bpno = lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=-1) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/lang/cpp/enum_types/TestCPP11EnumTypes.py =================================================================== --- test/lang/cpp/enum_types/TestCPP11EnumTypes.py +++ test/lang/cpp/enum_types/TestCPP11EnumTypes.py @@ -128,7 +128,7 @@ # Break inside the main. bkpt_id = lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/lang/cpp/namespace/TestNamespace.py =================================================================== --- test/lang/cpp/namespace/TestNamespace.py +++ test/lang/cpp/namespace/TestNamespace.py @@ -41,11 +41,11 @@ def namespace_variable_commands(self): """Test that anonymous and named namespace variables display correctly.""" - self.runCmd("file a.out", CURRENT_EXECUTABLE_SET) + self.runCmd("run a.out", RUN_FAILED) lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line_break, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/lang/cpp/overloaded-functions/TestOverloadedFunctions.py =================================================================== --- test/lang/cpp/overloaded-functions/TestOverloadedFunctions.py +++ test/lang/cpp/overloaded-functions/TestOverloadedFunctions.py @@ -33,7 +33,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("process launch", RUN_SUCCEEDED) + self.runCmd("process launch", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", Index: test/lang/cpp/rvalue-references/TestRvalueReferences.py =================================================================== --- test/lang/cpp/rvalue-references/TestRvalueReferences.py +++ test/lang/cpp/rvalue-references/TestRvalueReferences.py @@ -39,7 +39,7 @@ self.set_breakpoint(line_number('main.cpp', '// breakpoint 1')) self.set_breakpoint(line_number('main.cpp', '// breakpoint 2')) - self.runCmd("process launch", RUN_SUCCEEDED) + self.runCmd("process launch", RUN_FAILED) # Note that clang as of r187480 doesn't emit DW_TAG_const_type, unlike gcc 4.8.1 # With gcc 4.8.1, lldb reports the type as (int &&const) Index: test/lang/cpp/static_members/TestCPPStaticMembers.py =================================================================== --- test/lang/cpp/static_members/TestCPPStaticMembers.py +++ test/lang/cpp/static_members/TestCPPStaticMembers.py @@ -37,7 +37,7 @@ self.set_breakpoint(line_number('main.cpp', '// breakpoint 1')) self.set_breakpoint(line_number('main.cpp', '// breakpoint 2')) - self.runCmd("process launch", RUN_SUCCEEDED) + self.runCmd("process launch", RUN_FAILED) self.expect("expression my_a.access()", startstr = "(long) $0 = 10") Index: test/lang/cpp/static_methods/TestCPPStaticMethods.py =================================================================== --- test/lang/cpp/static_methods/TestCPPStaticMethods.py +++ test/lang/cpp/static_methods/TestCPPStaticMethods.py @@ -33,7 +33,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("process launch", RUN_SUCCEEDED) + self.runCmd("process launch", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", Index: test/lang/cpp/stl/TestSTL.py =================================================================== --- test/lang/cpp/stl/TestSTL.py +++ test/lang/cpp/stl/TestSTL.py @@ -67,7 +67,7 @@ # is this a problem with clang generated debug info? lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # Stop at 'std::string hello_world ("Hello World!");'. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/lang/cpp/stl/TestStdCXXDisassembly.py =================================================================== --- test/lang/cpp/stl/TestStdCXXDisassembly.py +++ test/lang/cpp/stl/TestStdCXXDisassembly.py @@ -34,7 +34,7 @@ # Break on line 13 of main.cpp. lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # Now let's get the target as well as the process objects. target = self.dbg.GetSelectedTarget() Index: test/lang/cpp/this/TestCPPThis.py =================================================================== --- test/lang/cpp/this/TestCPPThis.py +++ test/lang/cpp/this/TestCPPThis.py @@ -43,7 +43,7 @@ self.set_breakpoint(line_number('main.cpp', '// breakpoint 3')) self.set_breakpoint(line_number('main.cpp', '// breakpoint 4')) - self.runCmd("process launch", RUN_SUCCEEDED) + self.runCmd("process launch", RUN_FAILED) self.expect("expression -- m_a = 2", startstr = "(int) $0 = 2") Index: test/lang/cpp/unique-types/TestUniqueTypes.py =================================================================== --- test/lang/cpp/unique-types/TestUniqueTypes.py +++ test/lang/cpp/unique-types/TestUniqueTypes.py @@ -43,7 +43,7 @@ self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=-1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/lang/cpp/unsigned_types/TestUnsignedTypes.py =================================================================== --- test/lang/cpp/unsigned_types/TestUnsignedTypes.py +++ test/lang/cpp/unsigned_types/TestUnsignedTypes.py @@ -43,7 +43,7 @@ # Break on line 19 in main() aftre the variables are assigned values. lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=-1, loc_exact=need_exact) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/lang/objc/foundation/TestConstStrings.py =================================================================== --- test/lang/objc/foundation/TestConstStrings.py +++ test/lang/objc/foundation/TestConstStrings.py @@ -43,7 +43,7 @@ lldbutil.run_break_set_by_file_and_line (self, self.main_source, self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.expect("process status", STOPPED_DUE_TO_BREAKPOINT, substrs = [" at %s:%d" % (self.main_source, self.line), "stop reason = breakpoint"]) Index: test/lang/objc/foundation/TestFoundationDisassembly.py =================================================================== --- test/lang/objc/foundation/TestFoundationDisassembly.py +++ test/lang/objc/foundation/TestFoundationDisassembly.py @@ -100,7 +100,7 @@ break_results = lldbutil.run_break_set_command (self, "_regexp-break -[NSAutoreleasePool release]") lldbutil.check_breakpoint_result (self, break_results, symbol_name='-[NSAutoreleasePool release]', num_locations=1) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # First stop is +[NSString stringWithFormat:]. self.expect("thread backtrace", "Stop at +[NSString stringWithFormat:]", Index: test/lang/objc/foundation/TestObjCMethods.py =================================================================== --- test/lang/objc/foundation/TestObjCMethods.py +++ test/lang/objc/foundation/TestObjCMethods.py @@ -77,7 +77,7 @@ break_results = lldbutil.run_break_set_command(self, "_regexp-break -[NSAutoreleasePool release]") lldbutil.check_breakpoint_result (self, break_results, symbol_name='-[NSAutoreleasePool release]', num_locations=1) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # First stop is +[NSString stringWithFormat:]. self.expect("thread backtrace", "Stop at +[NSString stringWithFormat:]", @@ -133,7 +133,7 @@ # Stop at -[MyString initWithNSString:]. lldbutil.run_break_set_by_symbol (self, '-[MyString initWithNSString:]', num_expected_locations=1, sym_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) global file_index # Log any DWARF lookups @@ -179,7 +179,7 @@ # self.expect("breakpoint set -n '-[MyString description]", BREAKPOINT_CREATED, # startstr = "Breakpoint created: 1: name = '-[MyString description]', locations = 1") - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The backtrace should show we stop at -[MyString description]. self.expect("thread backtrace", "Stop at -[MyString description]", Index: test/lang/objc/foundation/TestObjCMethods2.py =================================================================== --- test/lang/objc/foundation/TestObjCMethods2.py +++ test/lang/objc/foundation/TestObjCMethods2.py @@ -107,7 +107,7 @@ for line in self.lines: lldbutil.run_break_set_by_file_and_line (self, "main.m", line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # Test_Selector: self.runCmd("thread backtrace") @@ -142,7 +142,7 @@ line = self.lines[1] lldbutil.run_break_set_by_file_and_line (self, "main.m", line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # Test_NSArray: self.runCmd("thread backtrace") @@ -167,7 +167,7 @@ line = self.lines[2] lldbutil.run_break_set_by_file_and_line (self, "main.m", line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # Test_NSString: self.runCmd("thread backtrace") @@ -195,7 +195,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.m", line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.expect("expression --show-types -- *my", patterns = ["\(MyString\) \$.* = ", "\(MyBase\)", "\(NSObject\)", "\(Class\)"]) @@ -210,7 +210,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.m", line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.expect("po [NSError errorWithDomain:@\"Hello\" code:35 userInfo:nil]", substrs = ["Error Domain=Hello", "Code=35", "be completed."]) @@ -225,7 +225,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.m", line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.expect("p [NSError thisMethodIsntImplemented:0]", error = True, Index: test/lang/objc/foundation/TestRuntimeTypes.py =================================================================== --- test/lang/objc/foundation/TestRuntimeTypes.py +++ test/lang/objc/foundation/TestRuntimeTypes.py @@ -36,7 +36,7 @@ # Stop at -[MyString description]. lldbutil.run_break_set_by_symbol (self, '-[MyString description]', num_expected_locations=1, sym_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The backtrace should show we stop at -[MyString description]. self.expect("thread backtrace", "Stop at -[MyString description]", Index: test/lang/objc/hidden-ivars/TestHiddenIvars.py =================================================================== --- test/lang/objc/hidden-ivars/TestHiddenIvars.py +++ test/lang/objc/hidden-ivars/TestHiddenIvars.py @@ -122,7 +122,7 @@ # Break inside the foo function which takes a bar_ptr argument. lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/lang/objc/modules-auto-import/TestModulesAutoImport.py =================================================================== --- test/lang/objc/modules-auto-import/TestModulesAutoImport.py +++ test/lang/objc/modules-auto-import/TestModulesAutoImport.py @@ -50,7 +50,7 @@ # Break inside the foo function which takes a bar_ptr argument. lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/lang/objc/modules-incomplete/TestIncompleteModules.py =================================================================== --- test/lang/objc/modules-incomplete/TestIncompleteModules.py +++ test/lang/objc/modules-incomplete/TestIncompleteModules.py @@ -50,7 +50,7 @@ # Break inside the foo function which takes a bar_ptr argument. lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/lang/objc/modules-inline-functions/TestModulesInlineFunctions.py =================================================================== --- test/lang/objc/modules-inline-functions/TestModulesInlineFunctions.py +++ test/lang/objc/modules-inline-functions/TestModulesInlineFunctions.py @@ -48,7 +48,7 @@ # Break inside the foo function which takes a bar_ptr argument. lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/lang/objc/modules/TestObjCModules.py =================================================================== --- test/lang/objc/modules/TestObjCModules.py +++ test/lang/objc/modules/TestObjCModules.py @@ -50,7 +50,7 @@ # Break inside the foo function which takes a bar_ptr argument. lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/lang/objc/objc++/TestObjCXX.py =================================================================== --- test/lang/objc/objc++/TestObjCXX.py +++ test/lang/objc/objc++/TestObjCXX.py @@ -36,7 +36,7 @@ lldbutil.run_break_set_by_source_regexp (self, 'breakpoint 1', num_expected_locations=1) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.expect("expr f->f", "Found ivar in class", substrs = ["= 3"]) Index: test/lang/objc/objc-dyn-sbtype/TestObjCDynamicSBType.py =================================================================== --- test/lang/objc/objc-dyn-sbtype/TestObjCDynamicSBType.py +++ test/lang/objc/objc-dyn-sbtype/TestObjCDynamicSBType.py @@ -47,7 +47,7 @@ lldbutil.run_break_set_by_file_and_line (self, self.main_source, self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) v_object = self.frame().FindVariable("object").GetDynamicValue(lldb.eDynamicCanRunTarget) v_base = self.frame().FindVariable("base").GetDynamicValue(lldb.eDynamicCanRunTarget) Index: test/lang/objc/objc-new-syntax/TestObjCNewSyntax.py =================================================================== --- test/lang/objc/objc-new-syntax/TestObjCNewSyntax.py +++ test/lang/objc/objc-new-syntax/TestObjCNewSyntax.py @@ -50,7 +50,7 @@ # Break inside the foo function which takes a bar_ptr argument. lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/lang/objc/objc-optimized/TestObjcOptimized.py =================================================================== --- test/lang/objc/objc-optimized/TestObjcOptimized.py +++ test/lang/objc/objc-optimized/TestObjcOptimized.py @@ -43,7 +43,7 @@ lldbutil.run_break_set_by_symbol (self, self.method_spec, num_expected_locations=1, sym_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.expect("thread backtrace", STOPPED_DUE_TO_BREAKPOINT, substrs = ["stop reason = breakpoint"], patterns = ["frame.*0:.*%s %s" % (self.myclass, self.mymethod)]) Index: test/lang/objc/radar-9691614/TestObjCMethodReturningBOOL.py =================================================================== --- test/lang/objc/radar-9691614/TestObjCMethodReturningBOOL.py +++ test/lang/objc/radar-9691614/TestObjCMethodReturningBOOL.py @@ -45,7 +45,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.expect("process status", STOPPED_DUE_TO_BREAKPOINT, substrs = [" at %s:%d" % (self.main_source, self.line), "stop reason = breakpoint"]) Index: test/lang/objc/rdar-10967107/TestRdar10967107.py =================================================================== --- test/lang/objc/rdar-10967107/TestRdar10967107.py +++ test/lang/objc/rdar-10967107/TestRdar10967107.py @@ -45,7 +45,7 @@ lldbutil.run_break_set_by_file_and_line (self, self.main_source, self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # check that each type is correctly bound to its list of children self.expect("frame variable cf_greg_date --raw", substrs = ['year','month','day','hour','minute','second']) self.expect("frame variable cf_range --raw", substrs = ['location','length']) Index: test/lang/objc/rdar-11355592/TestRdar11355592.py =================================================================== --- test/lang/objc/rdar-11355592/TestRdar11355592.py +++ test/lang/objc/rdar-11355592/TestRdar11355592.py @@ -45,7 +45,7 @@ lldbutil.run_break_set_by_file_and_line (self, self.main_source, self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # check that we correctly see the const char*, even with dynamic types on self.expect("frame variable my_string", substrs = ['const char *']) self.expect("frame variable my_string --dynamic-type run-target", substrs = ['const char *']) Index: test/lang/objc/rdar-12408181/TestRdar12408181.py =================================================================== --- test/lang/objc/rdar-12408181/TestRdar12408181.py +++ test/lang/objc/rdar-12408181/TestRdar12408181.py @@ -45,7 +45,7 @@ lldbutil.run_break_set_by_file_and_line (self, self.main_source, self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) window = self.frame().FindVariable("window") window_dynamic = window.GetDynamicValue(lldb.eDynamicCanRunTarget) self.assertTrue(window.GetNumChildren() > 1, "NSWindow (static) only has 1 child!") Index: test/lang/objc/real-definition/TestRealDefinition.py =================================================================== --- test/lang/objc/real-definition/TestRealDefinition.py +++ test/lang/objc/real-definition/TestRealDefinition.py @@ -65,7 +65,7 @@ line = line_number('Foo.m', '// Set breakpoint where Bar is an interface') lldbutil.run_break_set_by_file_and_line (self, 'Foo.m', line, num_expected_locations=1, loc_exact=True); - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -76,7 +76,7 @@ self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE, substrs = [' resolved, hit count = 1']) - self.runCmd("continue", RUN_SUCCEEDED) + self.runCmd("continue", RUN_FAILED) # Run at stop at main self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE, @@ -93,7 +93,7 @@ line = line_number('Bar.m', '// Set breakpoint where Bar is an implementation') lldbutil.run_break_set_by_file_and_line (self, 'Bar.m', line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -104,7 +104,7 @@ self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE, substrs = [' resolved, hit count = 1']) - self.runCmd("continue", RUN_SUCCEEDED) + self.runCmd("continue", RUN_FAILED) # Run at stop at main self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE, Index: test/lang/objc/self/TestObjCSelf.py =================================================================== --- test/lang/objc/self/TestObjCSelf.py +++ test/lang/objc/self/TestObjCSelf.py @@ -36,7 +36,7 @@ self.set_breakpoint(line_number('main.m', '// breakpoint 1')) self.set_breakpoint(line_number('main.m', '// breakpoint 2')) - self.runCmd("process launch", RUN_SUCCEEDED) + self.runCmd("process launch", RUN_FAILED) self.expect("expression -- m_a = 2", startstr = "(int) $0 = 2") Index: test/linux/builtin_trap/TestBuiltinTrap.py =================================================================== --- test/linux/builtin_trap/TestBuiltinTrap.py +++ test/linux/builtin_trap/TestBuiltinTrap.py @@ -43,7 +43,7 @@ num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -54,7 +54,7 @@ self.expect('bt', substrs = ['bar', 'main']) # go up one frame - self.runCmd("up", RUN_SUCCEEDED) + self.runCmd("up", RUN_FAILED) # evaluate a local self.expect('p foo', substrs = ['= 5']) Index: test/lldbtest.py =================================================================== --- test/lldbtest.py +++ test/lldbtest.py @@ -87,7 +87,7 @@ PROCESS_STOPPED = "Process status should be stopped" -RUN_SUCCEEDED = "Process is launched successfully" +RUN_FAILED = "Process could not be launched successfully" RUN_COMPLETED = "Process exited successfully" @@ -160,9 +160,18 @@ WATCHPOINT_CREATED = "Watchpoint created successfully" -def CMD_MSG(str): - '''A generic "Command '%s' returns successfully" message generator.''' - return "Command '%s' returns successfully" % str +def cmd_failure_message(cmd, res, msg=None): + """ Return a command failure message. + + Args: + cmd - The command which failed. + res - The command result of type SBCommandReturnObject. + msg - Additional failure message if any. + """ + err_msg = res.GetError() + full_msg = (err_msg or "") + (msg or "") + full_msg = (">>> %s" % full_msg.replace("\n", "\n>>> ")) if full_msg else "" + return "Command '%s' failed.\n%s" % (cmd, full_msg) def COMPLETION_MSG(str_before, str_after): '''A generic message generator for the completion mechanism.''' @@ -2264,8 +2273,9 @@ print >> sbuf, "Command '" + cmd + "' failed!" if check: - self.assertTrue(self.res.Succeeded(), - msg if msg else CMD_MSG(cmd)) + self.assertTrue( + self.res.Succeeded(), + cmd_failure_message(cmd, self.res, msg)) def match (self, str, patterns, msg=None, trace=False, error=False, matching=True, exe=True): """run command in str, and match the result against regexp in patterns returning the match object for the first matching pattern Index: test/macosx/universal/TestUniversal.py =================================================================== --- test/macosx/universal/TestUniversal.py +++ test/macosx/universal/TestUniversal.py @@ -56,7 +56,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line, num_expected_locations=1, loc_exact=True) # We should be able to launch the x86_64 executable. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # Check whether we have a 64-bit process launched. target = self.dbg.GetSelectedTarget() @@ -81,7 +81,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line, num_expected_locations=1, loc_exact=True) # We should be able to launch the i386 executable as well. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # Check whether we have a 32-bit process launched. target = self.dbg.GetSelectedTarget() Index: test/python_api/formatters/TestFormattersSBAPI.py =================================================================== --- test/python_api/formatters/TestFormattersSBAPI.py +++ test/python_api/formatters/TestFormattersSBAPI.py @@ -45,7 +45,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -304,7 +304,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/python_api/rdar-12481949/Test-rdar-12481949.py =================================================================== --- test/python_api/rdar-12481949/Test-rdar-12481949.py +++ test/python_api/rdar-12481949/Test-rdar-12481949.py @@ -38,7 +38,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/python_api/sbdata/TestSBData.py =================================================================== --- test/python_api/sbdata/TestSBData.py +++ test/python_api/sbdata/TestSBData.py @@ -51,7 +51,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/python_api/sbvalue_persist/TestSBValuePersist.py =================================================================== --- test/python_api/sbvalue_persist/TestSBValuePersist.py +++ test/python_api/sbvalue_persist/TestSBValuePersist.py @@ -37,7 +37,7 @@ lldbutil.run_break_set_by_source_regexp (self, "break here") - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/python_api/value_var_update/TestValueVarUpdate.py =================================================================== --- test/python_api/value_var_update/TestValueVarUpdate.py +++ test/python_api/value_var_update/TestValueVarUpdate.py @@ -42,7 +42,7 @@ breakpoint = target.BreakpointCreateBySourceRegex("break here", lldb.SBFileSpec("main.c")) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/settings/TestSettings.py =================================================================== --- test/settings/TestSettings.py +++ test/settings/TestSettings.py @@ -227,7 +227,7 @@ self.addTearDownHook( lambda: self.runCmd("settings clear target.env-vars")) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # Read the output file produced by running the program. if lldb.remote_platform: @@ -263,7 +263,7 @@ os.environ.pop("MY_HOST_ENV_VAR2") self.addTearDownHook(unset_env_variables) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # Read the output file produced by running the program. if lldb.remote_platform: @@ -299,7 +299,7 @@ SETTING_MSG("target.output-path"), substrs = ['target.output-path (file) = "stdout.txt"']) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) if lldb.remote_platform: self.runCmd('platform get-file "stderr.txt" "stderr.txt"') Index: test/source-manager/TestSourceManager.py =================================================================== --- test/source-manager/TestSourceManager.py +++ test/source-manager/TestSourceManager.py @@ -115,7 +115,7 @@ lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, Index: test/types/AbstractBase.py =================================================================== --- test/types/AbstractBase.py +++ test/types/AbstractBase.py @@ -140,7 +140,7 @@ break_line = line_number ("basic_type.cpp", "// Here is the line we will break on to check variables.") lldbutil.run_break_set_by_file_and_line (self, "basic_type.cpp", break_line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.expect("process status", STOPPED_DUE_TO_BREAKPOINT, substrs = [" at basic_type.cpp:%d" % break_line, "stop reason = breakpoint"]) @@ -224,7 +224,7 @@ break_line = line_number ("basic_type.cpp", "// Here is the line we will break on to check variables.") lldbutil.run_break_set_by_file_and_line (self, "basic_type.cpp", break_line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.expect("process status", STOPPED_DUE_TO_BREAKPOINT, substrs = [" at basic_type.cpp:%d" % break_line, "stop reason = breakpoint"]) Index: test/types/TestRecursiveTypes.py =================================================================== --- test/types/TestRecursiveTypes.py +++ test/types/TestRecursiveTypes.py @@ -56,10 +56,10 @@ lldbutil.run_break_set_by_file_and_line (self, "recursive_type_main.cpp", self.line, num_expected_locations=-1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) - self.expect("print tpi", RUN_SUCCEEDED) - self.expect("print *tpi", RUN_SUCCEEDED) + self.expect("print tpi", RUN_FAILED) + self.expect("print *tpi", RUN_FAILED) if __name__ == '__main__': import atexit