diff options
author | Sean Callanan <scallanan@apple.com> | 2015-07-01 23:56:30 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2015-07-01 23:56:30 +0000 |
commit | 05834cd2adac6a9c3a69a137075bb9dcdce07373 (patch) | |
tree | 7b75c3f42c8188bb273f90bf87695ad2d24b31ac | |
parent | 03855df197944840745afd1180ebf423c7050c3c (diff) | |
download | bcm5719-llvm-05834cd2adac6a9c3a69a137075bb9dcdce07373.tar.gz bcm5719-llvm-05834cd2adac6a9c3a69a137075bb9dcdce07373.zip |
Reversed r238363, because the message is inconsistent
with all the other assertion messages.
llvm-svn: 241212
174 files changed, 252 insertions, 262 deletions
diff --git a/lldb/test/api/check_public_api_headers/TestPublicAPIHeaders.py b/lldb/test/api/check_public_api_headers/TestPublicAPIHeaders.py index 3f7c3aaef31..63e21ffb4f4 100644 --- a/lldb/test/api/check_public_api_headers/TestPublicAPIHeaders.py +++ b/lldb/test/api/check_public_api_headers/TestPublicAPIHeaders.py @@ -79,7 +79,7 @@ class SBDirCheckerCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, self.source, self.line_to_break, num_expected_locations = -1) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/benchmarks/continue/TestBenchmarkContinue.py b/lldb/test/benchmarks/continue/TestBenchmarkContinue.py index 61cca067bd1..fa18afb87c6 100644 --- a/lldb/test/benchmarks/continue/TestBenchmarkContinue.py +++ b/lldb/test/benchmarks/continue/TestBenchmarkContinue.py @@ -37,7 +37,7 @@ class TestBenchmarkContinue(BenchBase): bkpt = self.target().FindBreakpointByID(lldbutil.run_break_set_by_source_regexp (self, "// break here")) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/expression_command/call-function/TestCallStdStringFunction.py b/lldb/test/expression_command/call-function/TestCallStdStringFunction.py index 6f1022e4584..c36577a5413 100644 --- a/lldb/test/expression_command/call-function/TestCallStdStringFunction.py +++ b/lldb/test/expression_command/call-function/TestCallStdStringFunction.py @@ -42,7 +42,7 @@ class ExprCommandCallFunctionTestCase(TestBase): # 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.expect("print str", substrs = ['Hello world']) diff --git a/lldb/test/expression_command/call-function/TestCallStopAndContinue.py b/lldb/test/expression_command/call-function/TestCallStopAndContinue.py index a012f994b7a..643ff082073 100644 --- a/lldb/test/expression_command/call-function/TestCallStopAndContinue.py +++ b/lldb/test/expression_command/call-function/TestCallStopAndContinue.py @@ -42,7 +42,7 @@ class ExprCommandCallStopContinueTestCase(TestBase): # 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.func_line, num_expected_locations=-1, loc_exact=True) diff --git a/lldb/test/expression_command/formatters/TestFormatters.py b/lldb/test/expression_command/formatters/TestFormatters.py index 0ca70346b2e..a6ba370a8d1 100644 --- a/lldb/test/expression_command/formatters/TestFormatters.py +++ b/lldb/test/expression_command/formatters/TestFormatters.py @@ -49,7 +49,7 @@ class ExprFormattersTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.runCmd("script import formatters") self.runCmd("script import foosynth") diff --git a/lldb/test/expression_command/persist_objc_pointeetype/TestPersistObjCPointeeType.py b/lldb/test/expression_command/persist_objc_pointeetype/TestPersistObjCPointeeType.py index 41bf03cea62..9c8c3fe1e70 100644 --- a/lldb/test/expression_command/persist_objc_pointeetype/TestPersistObjCPointeeType.py +++ b/lldb/test/expression_command/persist_objc_pointeetype/TestPersistObjCPointeeType.py @@ -44,7 +44,7 @@ class PersistObjCPointeeType(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.expect("p *self", substrs=['_sc_name = nil', '_sc_name2 = nil', diff --git a/lldb/test/expression_command/persistent_ptr_update/TestPersistentPtrUpdate.py b/lldb/test/expression_command/persistent_ptr_update/TestPersistentPtrUpdate.py index eb9e75dd110..9c291219529 100644 --- a/lldb/test/expression_command/persistent_ptr_update/TestPersistentPtrUpdate.py +++ b/lldb/test/expression_command/persistent_ptr_update/TestPersistentPtrUpdate.py @@ -40,7 +40,7 @@ class PersistentPtrUpdateTestCase(TestBase): self.runCmd('break set -p here') - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.runCmd("expr void* $foo = nullptr") diff --git a/lldb/test/expression_command/persistent_types/TestPersistentTypes.py b/lldb/test/expression_command/persistent_types/TestPersistentTypes.py index 06162c78c7f..ab25f4f9ee0 100644 --- a/lldb/test/expression_command/persistent_types/TestPersistentTypes.py +++ b/lldb/test/expression_command/persistent_types/TestPersistentTypes.py @@ -19,7 +19,7 @@ class PersistenttypesTestCase(TestBase): self.runCmd("breakpoint set --name main") - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.runCmd("expression struct $foo { int a; int b; };") diff --git a/lldb/test/expression_command/persistent_variables/TestPersistentVariables.py b/lldb/test/expression_command/persistent_variables/TestPersistentVariables.py index 91ac83659ce..8e7af009c6a 100644 --- a/lldb/test/expression_command/persistent_variables/TestPersistentVariables.py +++ b/lldb/test/expression_command/persistent_variables/TestPersistentVariables.py @@ -19,7 +19,7 @@ class PersistentVariablesTestCase(TestBase): self.runCmd("breakpoint set --source-pattern-regexp break") - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.runCmd("expression int $i = i") diff --git a/lldb/test/expression_command/po_verbosity/TestPoVerbosity.py b/lldb/test/expression_command/po_verbosity/TestPoVerbosity.py index e68cf8559e3..dbb9daa8d04 100644 --- a/lldb/test/expression_command/po_verbosity/TestPoVerbosity.py +++ b/lldb/test/expression_command/po_verbosity/TestPoVerbosity.py @@ -48,7 +48,7 @@ class PoVerbosityTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.expect("expr -O -v -- foo", substrs = ['(id) $',' = 0x', '1 = 2','2 = 3;']) diff --git a/lldb/test/expression_command/radar_8638051/Test8638051.py b/lldb/test/expression_command/radar_8638051/Test8638051.py index 09ddd106bbc..823c8e12113 100644 --- a/lldb/test/expression_command/radar_8638051/Test8638051.py +++ b/lldb/test/expression_command/radar_8638051/Test8638051.py @@ -19,7 +19,7 @@ class Radar8638051TestCase(TestBase): self.runCmd("breakpoint set -n c") - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.expect("expression val", startstr = "(int) $0 = 1") diff --git a/lldb/test/expression_command/radar_9531204/TestPrintfAfterUp.py b/lldb/test/expression_command/radar_9531204/TestPrintfAfterUp.py index 506f0bd9139..cdc3e3c0733 100644 --- a/lldb/test/expression_command/radar_9531204/TestPrintfAfterUp.py +++ b/lldb/test/expression_command/radar_9531204/TestPrintfAfterUp.py @@ -21,7 +21,7 @@ class Radar9531204TestCase(TestBase): lldbutil.run_break_set_by_symbol (self, 'foo', sym_exact=True, num_expected_locations=1) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.runCmd("frame variable") diff --git a/lldb/test/expression_command/radar_9673664/TestExprHelpExamples.py b/lldb/test/expression_command/radar_9673664/TestExprHelpExamples.py index cd0984dd696..568b14ad167 100644 --- a/lldb/test/expression_command/radar_9673664/TestExprHelpExamples.py +++ b/lldb/test/expression_command/radar_9673664/TestExprHelpExamples.py @@ -28,7 +28,7 @@ class Radar9673644TestCase(TestBase): 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # rdar://problem/9673664 lldb expression evaluation problem diff --git a/lldb/test/expression_command/test/TestExprs.py b/lldb/test/expression_command/test/TestExprs.py index d20aa3059d4..a1f13dc41e1 100644 --- a/lldb/test/expression_command/test/TestExprs.py +++ b/lldb/test/expression_command/test/TestExprs.py @@ -41,7 +41,7 @@ class BasicExprCommandsTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=False) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) @unittest2.expectedFailure("llvm.org/pr17135 <rdar://problem/14874559> APFloat::toString does not identify the correct (i.e. least) precision.") def test_floating_point_expr_commands(self): @@ -201,7 +201,7 @@ class BasicExprCommandsTestCase(TestBase): lldbutil.run_break_set_by_file_and_line(self, "main.cpp", self.line, num_expected_locations=1,loc_exact=False) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # runCmd: expression 'a' # output: (char) $0 = 'a' diff --git a/lldb/test/expression_command/test/TestExprs2.py b/lldb/test/expression_command/test/TestExprs2.py index daa5cd4587d..1fdb787898a 100644 --- a/lldb/test/expression_command/test/TestExprs2.py +++ b/lldb/test/expression_command/test/TestExprs2.py @@ -27,7 +27,7 @@ class ExprCommands2TestCase(TestBase): lldbutil.run_break_set_by_file_and_line(self, "main.cpp", self.line, num_expected_locations=1,loc_exact=False) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # Does static casting work? self.expect("expression (int*)argv", diff --git a/lldb/test/expression_command/two-files/TestObjCTypeQueryFromOtherCompileUnit.py b/lldb/test/expression_command/two-files/TestObjCTypeQueryFromOtherCompileUnit.py index daff33a75be..9f3a18d6af0 100644 --- a/lldb/test/expression_command/two-files/TestObjCTypeQueryFromOtherCompileUnit.py +++ b/lldb/test/expression_command/two-files/TestObjCTypeQueryFromOtherCompileUnit.py @@ -40,7 +40,7 @@ class ObjCTypeQueryTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # Now do a NSArry type query from the 'main.m' compile uint. self.expect("expression (NSArray*)array_token", diff --git a/lldb/test/functionalities/archives/TestBSDArchives.py b/lldb/test/functionalities/archives/TestBSDArchives.py index c56856263e5..632b9819070 100644 --- a/lldb/test/functionalities/archives/TestBSDArchives.py +++ b/lldb/test/functionalities/archives/TestBSDArchives.py @@ -29,7 +29,7 @@ class BSDArchivesTestCase(TestBase): # 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py b/lldb/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py index cffbff46af3..b1116595d4b 100644 --- a/lldb/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py +++ b/lldb/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py @@ -111,7 +111,7 @@ class BreakpointCommandTestCase(TestBase): # Run the program. Remove 'output.txt' if it exists. self.RemoveTempFile("output.txt") self.RemoveTempFile("output2.txt") - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # Check that the file 'output.txt' exists and contains the string "lldb". @@ -161,7 +161,7 @@ class BreakpointCommandTestCase(TestBase): self.line]) # Run the program again, with breakpoint 1 remaining. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # We should be stopped again due to breakpoint 1. @@ -191,7 +191,7 @@ class BreakpointCommandTestCase(TestBase): os.remove ('output-2.txt') # Run program, hit breakpoint, and hopefully write out new version of 'output-2.txt' - self.runCmd ("run", RUN_FAILED) + self.runCmd ("run", RUN_SUCCEEDED) # Check that the file 'output.txt' exists and contains the string "lldb". diff --git a/lldb/test/functionalities/breakpoint/breakpoint_command/TestRegexpBreakCommand.py b/lldb/test/functionalities/breakpoint/breakpoint_command/TestRegexpBreakCommand.py index b7d9b704606..ca95f36e838 100644 --- a/lldb/test/functionalities/breakpoint/breakpoint_command/TestRegexpBreakCommand.py +++ b/lldb/test/functionalities/breakpoint/breakpoint_command/TestRegexpBreakCommand.py @@ -48,7 +48,7 @@ class RegexpBreakCommandTestCase(TestBase): 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py b/lldb/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py index 6587746ae9a..a60a917e8af 100644 --- a/lldb/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py +++ b/lldb/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py @@ -79,7 +79,7 @@ class BreakpointConditionsTestCase(TestBase): self.runCmd("breakpoint modify -c 'val == 3' 1") # Now run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The process should be stopped at this point. self.expect("process status", PROCESS_STOPPED, @@ -110,7 +110,7 @@ class BreakpointConditionsTestCase(TestBase): substrs = ["Condition:"]) # Now run the program again. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The process should be stopped at this point. self.expect("process status", PROCESS_STOPPED, diff --git a/lldb/test/functionalities/breakpoint/breakpoint_ignore_count/TestBreakpointIgnoreCount.py b/lldb/test/functionalities/breakpoint/breakpoint_ignore_count/TestBreakpointIgnoreCount.py index 1b961c3343e..7655af396ab 100644 --- a/lldb/test/functionalities/breakpoint/breakpoint_ignore_count/TestBreakpointIgnoreCount.py +++ b/lldb/test/functionalities/breakpoint/breakpoint_ignore_count/TestBreakpointIgnoreCount.py @@ -59,7 +59,7 @@ class BreakpointIgnoreCountTestCase(TestBase): 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The process should be stopped at this point. self.expect("process status", PROCESS_STOPPED, @@ -79,7 +79,7 @@ class BreakpointIgnoreCountTestCase(TestBase): # 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_FAILED) + self.runCmd("process continue -i 1", RUN_SUCCEEDED) # The process should be stopped at this point. self.expect("process status", PROCESS_STOPPED, diff --git a/lldb/test/functionalities/breakpoint/breakpoint_locations/TestBreakpointLocations.py b/lldb/test/functionalities/breakpoint/breakpoint_locations/TestBreakpointLocations.py index b86ee77df2a..5cc912a24df 100644 --- a/lldb/test/functionalities/breakpoint/breakpoint_locations/TestBreakpointLocations.py +++ b/lldb/test/functionalities/breakpoint/breakpoint_locations/TestBreakpointLocations.py @@ -56,7 +56,7 @@ class BreakpointLocationsTestCase(TestBase): startstr = "3 breakpoints disabled.") # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # We should not stopped on any breakpoint at all. self.expect("process status", "No stopping on any disabled breakpoint", @@ -71,7 +71,7 @@ class BreakpointLocationsTestCase(TestBase): startstr = "1 breakpoints disabled.") # Run the program againt. We should stop on the two breakpoint locations. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # Stopped once. self.expect("thread backtrace", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/breakpoint/breakpoint_options/TestBreakpointOptions.py b/lldb/test/functionalities/breakpoint/breakpoint_options/TestBreakpointOptions.py index b46cea0a662..b8704bda7d8 100644 --- a/lldb/test/functionalities/breakpoint/breakpoint_options/TestBreakpointOptions.py +++ b/lldb/test/functionalities/breakpoint/breakpoint_options/TestBreakpointOptions.py @@ -44,7 +44,7 @@ class BreakpointOptionsTestCase(TestBase): 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # Stopped once. self.expect("thread backtrace", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/breakpoint/dummy_target_breakpoints/TestBreakpointsWithNoTargets.py b/lldb/test/functionalities/breakpoint/dummy_target_breakpoints/TestBreakpointsWithNoTargets.py index a357031cb4d..de532c85724 100644 --- a/lldb/test/functionalities/breakpoint/dummy_target_breakpoints/TestBreakpointsWithNoTargets.py +++ b/lldb/test/functionalities/breakpoint/dummy_target_breakpoints/TestBreakpointsWithNoTargets.py @@ -58,7 +58,7 @@ class BreakpointInDummyTarget (TestBase): "2: file = 'main.c', line = %d, exact_match = 0, locations = 1" % self.line2]) # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # Stopped once. self.expect("thread backtrace", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/breakpoint/inlined_breakpoints/TestInlinedBreakpoints.py b/lldb/test/functionalities/breakpoint/inlined_breakpoints/TestInlinedBreakpoints.py index afe90fd8d4e..ec5e2f3e696 100644 --- a/lldb/test/functionalities/breakpoint/inlined_breakpoints/TestInlinedBreakpoints.py +++ b/lldb/test/functionalities/breakpoint/inlined_breakpoints/TestInlinedBreakpoints.py @@ -53,7 +53,7 @@ class InlinedBreakpointsTestCase(TestBase): 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. # And it should break at basic_type.cpp:176. diff --git a/lldb/test/functionalities/conditional_break/TestConditionalBreak.py b/lldb/test/functionalities/conditional_break/TestConditionalBreak.py index 7014c418927..1031bfd766c 100644 --- a/lldb/test/functionalities/conditional_break/TestConditionalBreak.py +++ b/lldb/test/functionalities/conditional_break/TestConditionalBreak.py @@ -123,7 +123,7 @@ class ConditionalBreakTestCase(TestBase): if self.TraceOn(): print "About to run." - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.runCmd ("break list") diff --git a/lldb/test/functionalities/data-formatter/data-formatter-advanced/TestDataFormatterAdv.py b/lldb/test/functionalities/data-formatter/data-formatter-advanced/TestDataFormatterAdv.py index 992bde0e178..702563a20ae 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-advanced/TestDataFormatterAdv.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-advanced/TestDataFormatterAdv.py @@ -37,7 +37,7 @@ class AdvDataFormatterTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/data-formatter-categories/TestDataFormatterCategories.py b/lldb/test/functionalities/data-formatter/data-formatter-categories/TestDataFormatterCategories.py index cf53eddb827..76de9a7245e 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-categories/TestDataFormatterCategories.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-categories/TestDataFormatterCategories.py @@ -37,7 +37,7 @@ class CategoriesDataFormatterTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py b/lldb/test/functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py index a6953cee3dc..8ffbb73a6e8 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py @@ -37,7 +37,7 @@ class CppDataFormatterTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/data-formatter-disabling/TestDataFormatterDisabling.py b/lldb/test/functionalities/data-formatter/data-formatter-disabling/TestDataFormatterDisabling.py index 7c8d9ced6ce..64979bb5179 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-disabling/TestDataFormatterDisabling.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-disabling/TestDataFormatterDisabling.py @@ -37,7 +37,7 @@ class DataFormatterDisablingTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/data-formatter-enum-format/TestDataFormatterEnumFormat.py b/lldb/test/functionalities/data-formatter/data-formatter-enum-format/TestDataFormatterEnumFormat.py index 15f4932b2f3..98891e539c2 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-enum-format/TestDataFormatterEnumFormat.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-enum-format/TestDataFormatterEnumFormat.py @@ -37,7 +37,7 @@ class EnumFormatTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/data-formatter-named-summaries/TestDataFormatterNamedSummaries.py b/lldb/test/functionalities/data-formatter/data-formatter-named-summaries/TestDataFormatterNamedSummaries.py index 790c488ec53..64e68e5e320 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-named-summaries/TestDataFormatterNamedSummaries.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-named-summaries/TestDataFormatterNamedSummaries.py @@ -37,7 +37,7 @@ class NamedSummariesDataFormatterTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py b/lldb/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py index e7604f26c4a..f0aadb59ba1 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py @@ -231,7 +231,7 @@ class ObjCDataFormatterTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -262,7 +262,7 @@ class ObjCDataFormatterTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -327,7 +327,7 @@ class ObjCDataFormatterTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -508,7 +508,7 @@ class ObjCDataFormatterTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -551,7 +551,7 @@ class ObjCDataFormatterTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -607,7 +607,7 @@ class ObjCDataFormatterTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/data-formatter-python-synth/TestDataFormatterPythonSynth.py b/lldb/test/functionalities/data-formatter/data-formatter-python-synth/TestDataFormatterPythonSynth.py index e13728a36f8..fad6d4a05b1 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-python-synth/TestDataFormatterPythonSynth.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-python-synth/TestDataFormatterPythonSynth.py @@ -54,7 +54,7 @@ class PythonSynthDataFormatterTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -210,7 +210,7 @@ class PythonSynthDataFormatterTestCase(TestBase): 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/data-formatter-script/TestDataFormatterScript.py b/lldb/test/functionalities/data-formatter/data-formatter-script/TestDataFormatterScript.py index c12cc0efed1..a23fa2c9adc 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-script/TestDataFormatterScript.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-script/TestDataFormatterScript.py @@ -37,7 +37,7 @@ class ScriptDataFormatterTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py b/lldb/test/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py index ad3b4b3caef..6a925dbb2c0 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-skip-summary/TestDataFormatterSkipSummary.py @@ -40,7 +40,7 @@ class SkipSummaryDataFormatterTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/data-formatter-smart-array/TestDataFormatterSmartArray.py b/lldb/test/functionalities/data-formatter/data-formatter-smart-array/TestDataFormatterSmartArray.py index dcf56261f5f..645d316e5a5 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-smart-array/TestDataFormatterSmartArray.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-smart-array/TestDataFormatterSmartArray.py @@ -37,7 +37,7 @@ class SmartArrayDataFormatterTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/initializerlist/TestInitializerList.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/initializerlist/TestInitializerList.py index 549d2002595..8d31bdf78ab 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/initializerlist/TestInitializerList.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/initializerlist/TestInitializerList.py @@ -38,7 +38,7 @@ class InitializerListTestCase(TestBase): bkpt = self.target().FindBreakpointByID(lldbutil.run_break_set_by_source_regexp (self, "Set break point at this line.")) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/iterator/TestDataFormatterLibccIterator.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/iterator/TestDataFormatterLibccIterator.py index 620b859d051..0fbcc3a0d5d 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/iterator/TestDataFormatterLibccIterator.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/iterator/TestDataFormatterLibccIterator.py @@ -39,7 +39,7 @@ class LibcxxIteratorDataFormatterTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=-1) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/TestDataFormatterLibcxxList.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/TestDataFormatterLibcxxList.py index 3559c9a3ba7..ee743b96ee2 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/TestDataFormatterLibcxxList.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/TestDataFormatterLibcxxList.py @@ -41,7 +41,7 @@ class LibcxxListDataFormatterTestCase(TestBase): 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/map/TestDataFormatterLibccMap.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/map/TestDataFormatterLibccMap.py index 5fe9843d822..8881ea05566 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/map/TestDataFormatterLibccMap.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/map/TestDataFormatterLibccMap.py @@ -37,7 +37,7 @@ class LibcxxMapDataFormatterTestCase(TestBase): bkpt = self.target().FindBreakpointByID(lldbutil.run_break_set_by_source_regexp (self, "Set break point at this line.")) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/multimap/TestDataFormatterLibccMultiMap.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/multimap/TestDataFormatterLibccMultiMap.py index 628a2557bb8..2c3b72a6b7d 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/multimap/TestDataFormatterLibccMultiMap.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/multimap/TestDataFormatterLibccMultiMap.py @@ -37,7 +37,7 @@ class LibcxxMultiMapDataFormatterTestCase(TestBase): bkpt = self.target().FindBreakpointByID(lldbutil.run_break_set_by_source_regexp (self, "Set break point at this line.")) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/multiset/TestDataFormatterLibcxxMultiSet.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/multiset/TestDataFormatterLibcxxMultiSet.py index a795bc17f1e..f51f0509e41 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/multiset/TestDataFormatterLibcxxMultiSet.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/multiset/TestDataFormatterLibcxxMultiSet.py @@ -37,7 +37,7 @@ class LibcxxMultiSetDataFormatterTestCase(TestBase): bkpt = self.target().FindBreakpointByID(lldbutil.run_break_set_by_source_regexp (self, "Set break point at this line.")) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/set/TestDataFormatterLibcxxSet.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/set/TestDataFormatterLibcxxSet.py index cac8cefd289..d855399ad10 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/set/TestDataFormatterLibcxxSet.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/set/TestDataFormatterLibcxxSet.py @@ -37,7 +37,7 @@ class LibcxxSetDataFormatterTestCase(TestBase): bkpt = self.target().FindBreakpointByID(lldbutil.run_break_set_by_source_regexp (self, "Set break point at this line.")) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/string/TestDataFormatterLibcxxString.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/string/TestDataFormatterLibcxxString.py index 86ecfaa1a60..fd3ecfe0461 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/string/TestDataFormatterLibcxxString.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/string/TestDataFormatterLibcxxString.py @@ -40,7 +40,7 @@ class LibcxxStringDataFormatterTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=-1) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/unordered/TestDataFormatterUnordered.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/unordered/TestDataFormatterUnordered.py index 98554d9fb5e..18547522e73 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/unordered/TestDataFormatterUnordered.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/unordered/TestDataFormatterUnordered.py @@ -40,7 +40,7 @@ class LibcxxUnorderedDataFormatterTestCase(TestBase): lldbutil.run_break_set_by_source_regexp (self, "Set break point at this line.") - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/vbool/TestDataFormatterLibcxxVBool.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/vbool/TestDataFormatterLibcxxVBool.py index 3e0426ae0a7..e5abcd649a6 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/vbool/TestDataFormatterLibcxxVBool.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/vbool/TestDataFormatterLibcxxVBool.py @@ -39,7 +39,7 @@ class LibcxxVBoolDataFormatterTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=-1) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/vector/TestDataFormatterLibcxxVector.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/vector/TestDataFormatterLibcxxVector.py index a42e1836228..b7c96189c0d 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/vector/TestDataFormatterLibcxxVector.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/vector/TestDataFormatterLibcxxVector.py @@ -37,7 +37,7 @@ class LibcxxVectorDataFormatterTestCase(TestBase): bkpt = self.target().FindBreakpointByID(lldbutil.run_break_set_by_source_regexp (self, "break here")) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/iterator/TestDataFormatterStdIterator.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/iterator/TestDataFormatterStdIterator.py index ac5663a8b5a..bac3057309f 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/iterator/TestDataFormatterStdIterator.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/iterator/TestDataFormatterStdIterator.py @@ -39,7 +39,7 @@ class StdIteratorDataFormatterTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=-1) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/list/TestDataFormatterStdList.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/list/TestDataFormatterStdList.py index e0bdc67be09..6b06581112a 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/list/TestDataFormatterStdList.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/list/TestDataFormatterStdList.py @@ -40,7 +40,7 @@ class StdListDataFormatterTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=-1) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -162,7 +162,7 @@ class StdListDataFormatterTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.final_line, num_expected_locations=-1) - self.runCmd("c", RUN_FAILED) + self.runCmd("c", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/map/TestDataFormatterStdMap.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/map/TestDataFormatterStdMap.py index a4cb0aac68e..d2ffa0f4b36 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/map/TestDataFormatterStdMap.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/map/TestDataFormatterStdMap.py @@ -40,7 +40,7 @@ class StdMapDataFormatterTestCase(TestBase): lldbutil.run_break_set_by_source_regexp (self, "Set break point at this line.") - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/string/TestDataFormatterStdString.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/string/TestDataFormatterStdString.py index abd8446ac27..9188efb8d55 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/string/TestDataFormatterStdString.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/string/TestDataFormatterStdString.py @@ -39,7 +39,7 @@ class StdStringDataFormatterTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=-1) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vbool/TestDataFormatterStdVBool.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vbool/TestDataFormatterStdVBool.py index c700c310cc6..7fc8a7c817c 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vbool/TestDataFormatterStdVBool.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vbool/TestDataFormatterStdVBool.py @@ -42,7 +42,7 @@ class StdVBoolDataFormatterTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=-1) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vector/TestDataFormatterStdVector.py b/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vector/TestDataFormatterStdVector.py index 64de4a4b506..9d4ea773eb7 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vector/TestDataFormatterStdVector.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vector/TestDataFormatterStdVector.py @@ -39,7 +39,7 @@ class StdVectorDataFormatterTestCase(TestBase): lldbutil.run_break_set_by_source_regexp (self, "Set break point at this line.") - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/data-formatter-synth/TestDataFormatterSynth.py b/lldb/test/functionalities/data-formatter/data-formatter-synth/TestDataFormatterSynth.py index dfee780f30c..48217103aa8 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-synth/TestDataFormatterSynth.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-synth/TestDataFormatterSynth.py @@ -38,7 +38,7 @@ class SynthDataFormatterTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/data-formatter-synthval/TestDataFormatterSynthVal.py b/lldb/test/functionalities/data-formatter/data-formatter-synthval/TestDataFormatterSynthVal.py index 52d69fa33a0..94a9934c87e 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-synthval/TestDataFormatterSynthVal.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-synthval/TestDataFormatterSynthVal.py @@ -39,7 +39,7 @@ class DataFormatterSynthValueTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/format-propagation/TestFormatPropagation.py b/lldb/test/functionalities/data-formatter/format-propagation/TestFormatPropagation.py index c4fd55f008b..cc670569d72 100644 --- a/lldb/test/functionalities/data-formatter/format-propagation/TestFormatPropagation.py +++ b/lldb/test/functionalities/data-formatter/format-propagation/TestFormatPropagation.py @@ -39,7 +39,7 @@ class FormatPropagationTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/frameformat_smallstruct/TestFrameFormatSmallStruct.py b/lldb/test/functionalities/data-formatter/frameformat_smallstruct/TestFrameFormatSmallStruct.py index 3483f138689..7580a5f86b7 100644 --- a/lldb/test/functionalities/data-formatter/frameformat_smallstruct/TestFrameFormatSmallStruct.py +++ b/lldb/test/functionalities/data-formatter/frameformat_smallstruct/TestFrameFormatSmallStruct.py @@ -37,7 +37,7 @@ class FrameFormatSmallStructTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/ptr_ref_typedef/TestPtrRef2Typedef.py b/lldb/test/functionalities/data-formatter/ptr_ref_typedef/TestPtrRef2Typedef.py index 881e2e61d89..ad086e6e1a9 100644 --- a/lldb/test/functionalities/data-formatter/ptr_ref_typedef/TestPtrRef2Typedef.py +++ b/lldb/test/functionalities/data-formatter/ptr_ref_typedef/TestPtrRef2Typedef.py @@ -37,7 +37,7 @@ class PtrRef2TypedefTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/rdar-10449092/Test-rdar-10449092.py b/lldb/test/functionalities/data-formatter/rdar-10449092/Test-rdar-10449092.py index f6a31907bf1..ac8757f6cfe 100644 --- a/lldb/test/functionalities/data-formatter/rdar-10449092/Test-rdar-10449092.py +++ b/lldb/test/functionalities/data-formatter/rdar-10449092/Test-rdar-10449092.py @@ -38,7 +38,7 @@ class Radar10449092DataFormatterTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/rdar-10642615/Test-rdar-10642615.py b/lldb/test/functionalities/data-formatter/rdar-10642615/Test-rdar-10642615.py index ed1db515b03..b4f6294c11a 100644 --- a/lldb/test/functionalities/data-formatter/rdar-10642615/Test-rdar-10642615.py +++ b/lldb/test/functionalities/data-formatter/rdar-10642615/Test-rdar-10642615.py @@ -39,7 +39,7 @@ class Radar10642615DataFormatterTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/rdar-10887661/TestRdar10887661.py b/lldb/test/functionalities/data-formatter/rdar-10887661/TestRdar10887661.py index 9b36e716fa8..67aa08de6b8 100644 --- a/lldb/test/functionalities/data-formatter/rdar-10887661/TestRdar10887661.py +++ b/lldb/test/functionalities/data-formatter/rdar-10887661/TestRdar10887661.py @@ -39,7 +39,7 @@ class Rdar10887661TestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/rdar-11086338/TestRdar11086338.py b/lldb/test/functionalities/data-formatter/rdar-11086338/TestRdar11086338.py index 21979113823..40bd599617f 100644 --- a/lldb/test/functionalities/data-formatter/rdar-11086338/TestRdar11086338.py +++ b/lldb/test/functionalities/data-formatter/rdar-11086338/TestRdar11086338.py @@ -39,7 +39,7 @@ class DataFormatterRdar11086338TestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/rdar-11628688/TestFormattersBoolRefPtr.py b/lldb/test/functionalities/data-formatter/rdar-11628688/TestFormattersBoolRefPtr.py index a0ade4b8cb0..f0584c89ed2 100644 --- a/lldb/test/functionalities/data-formatter/rdar-11628688/TestFormattersBoolRefPtr.py +++ b/lldb/test/functionalities/data-formatter/rdar-11628688/TestFormattersBoolRefPtr.py @@ -39,7 +39,7 @@ class DataFormatterOSTypeTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.mm", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/rdar-11773899/TestFormattersBoolRefPtr.py b/lldb/test/functionalities/data-formatter/rdar-11773899/TestFormattersBoolRefPtr.py index c9d6be89ba9..092737b3ac2 100644 --- a/lldb/test/functionalities/data-formatter/rdar-11773899/TestFormattersBoolRefPtr.py +++ b/lldb/test/functionalities/data-formatter/rdar-11773899/TestFormattersBoolRefPtr.py @@ -39,7 +39,7 @@ class DataFormatterBoolRefPtr(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.mm", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/rdar-11988289/TestRdar 11988289.py b/lldb/test/functionalities/data-formatter/rdar-11988289/TestRdar 11988289.py index 2ce6ba5fd33..ae1b83bd39b 100644 --- a/lldb/test/functionalities/data-formatter/rdar-11988289/TestRdar 11988289.py +++ b/lldb/test/functionalities/data-formatter/rdar-11988289/TestRdar 11988289.py @@ -39,7 +39,7 @@ class DataFormatterRdar11988289TestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/rdar-12437442/TestRdar12437442.py b/lldb/test/functionalities/data-formatter/rdar-12437442/TestRdar12437442.py index 307fcd97533..c96f38b0803 100644 --- a/lldb/test/functionalities/data-formatter/rdar-12437442/TestRdar12437442.py +++ b/lldb/test/functionalities/data-formatter/rdar-12437442/TestRdar12437442.py @@ -39,7 +39,7 @@ class DataFormatterRdar12437442TestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/rdar-12529957/TestRdar12529957.py b/lldb/test/functionalities/data-formatter/rdar-12529957/TestRdar12529957.py index 399a535ef61..83a36ecda55 100644 --- a/lldb/test/functionalities/data-formatter/rdar-12529957/TestRdar12529957.py +++ b/lldb/test/functionalities/data-formatter/rdar-12529957/TestRdar12529957.py @@ -39,7 +39,7 @@ class DataFormatterRdar12529957TestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/rdar-13338477/Test-rdar-13338477.py b/lldb/test/functionalities/data-formatter/rdar-13338477/Test-rdar-13338477.py index 5b4e10675ae..5a2acda18a3 100644 --- a/lldb/test/functionalities/data-formatter/rdar-13338477/Test-rdar-13338477.py +++ b/lldb/test/functionalities/data-formatter/rdar-13338477/Test-rdar-13338477.py @@ -38,7 +38,7 @@ class Radar13338477DataFormatterTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/rdar-3534688/TestFormattersOneIsSingular.py b/lldb/test/functionalities/data-formatter/rdar-3534688/TestFormattersOneIsSingular.py index e4a55c8f9a2..b3cbeb43e10 100644 --- a/lldb/test/functionalities/data-formatter/rdar-3534688/TestFormattersOneIsSingular.py +++ b/lldb/test/functionalities/data-formatter/rdar-3534688/TestFormattersOneIsSingular.py @@ -39,7 +39,7 @@ class DataFormatterOneIsSingularTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/rdar-9973865/Test-rdar-9973865.py b/lldb/test/functionalities/data-formatter/rdar-9973865/Test-rdar-9973865.py index c8facb5d2c5..9470fbf2393 100644 --- a/lldb/test/functionalities/data-formatter/rdar-9973865/Test-rdar-9973865.py +++ b/lldb/test/functionalities/data-formatter/rdar-9973865/Test-rdar-9973865.py @@ -39,7 +39,7 @@ class Radar9973865DataFormatterTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/rdar-9973992/Test-rdar-9973992.py b/lldb/test/functionalities/data-formatter/rdar-9973992/Test-rdar-9973992.py index fffe5797692..5f31904279c 100644 --- a/lldb/test/functionalities/data-formatter/rdar-9973992/Test-rdar-9973992.py +++ b/lldb/test/functionalities/data-formatter/rdar-9973992/Test-rdar-9973992.py @@ -38,7 +38,7 @@ class Radar9973992DataFormatterTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/rdar-9974002/Test-rdar-9974002.py b/lldb/test/functionalities/data-formatter/rdar-9974002/Test-rdar-9974002.py index 5e28a3f9d8f..326edf1a5a9 100644 --- a/lldb/test/functionalities/data-formatter/rdar-9974002/Test-rdar-9974002.py +++ b/lldb/test/functionalities/data-formatter/rdar-9974002/Test-rdar-9974002.py @@ -41,7 +41,7 @@ class Radar9974002DataFormatterTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/refpointer-recursion/TestDataFormatterRefPtrRecursion.py b/lldb/test/functionalities/data-formatter/refpointer-recursion/TestDataFormatterRefPtrRecursion.py index dd61431b086..237099d7bdd 100644 --- a/lldb/test/functionalities/data-formatter/refpointer-recursion/TestDataFormatterRefPtrRecursion.py +++ b/lldb/test/functionalities/data-formatter/refpointer-recursion/TestDataFormatterRefPtrRecursion.py @@ -37,7 +37,7 @@ class DataFormatterRefPtrRecursionTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/user-format-vs-summary/TestUserFormatVsSummary.py b/lldb/test/functionalities/data-formatter/user-format-vs-summary/TestUserFormatVsSummary.py index 0b138f71027..7650c23bb51 100644 --- a/lldb/test/functionalities/data-formatter/user-format-vs-summary/TestUserFormatVsSummary.py +++ b/lldb/test/functionalities/data-formatter/user-format-vs-summary/TestUserFormatVsSummary.py @@ -37,7 +37,7 @@ class UserFormatVSSummaryTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/varscript_formatting/TestDataFormatterVarScriptFormatting.py b/lldb/test/functionalities/data-formatter/varscript_formatting/TestDataFormatterVarScriptFormatting.py index ae8f088ea50..66f597d3493 100644 --- a/lldb/test/functionalities/data-formatter/varscript_formatting/TestDataFormatterVarScriptFormatting.py +++ b/lldb/test/functionalities/data-formatter/varscript_formatting/TestDataFormatterVarScriptFormatting.py @@ -39,7 +39,7 @@ class PythonSynthDataFormatterTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/data-formatter/vector-types/TestVectorTypesFormatting.py b/lldb/test/functionalities/data-formatter/vector-types/TestVectorTypesFormatting.py index 14cc63fd042..3bd2262f601 100644 --- a/lldb/test/functionalities/data-formatter/vector-types/TestVectorTypesFormatting.py +++ b/lldb/test/functionalities/data-formatter/vector-types/TestVectorTypesFormatting.py @@ -40,7 +40,7 @@ class VectorTypesFormattingTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/dead-strip/TestDeadStrip.py b/lldb/test/functionalities/dead-strip/TestDeadStrip.py index eaae4386701..d9f92b3158f 100644 --- a/lldb/test/functionalities/dead-strip/TestDeadStrip.py +++ b/lldb/test/functionalities/dead-strip/TestDeadStrip.py @@ -40,7 +40,7 @@ class DeadStripTestCase(TestBase): # 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint (breakpoint #1). self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/inferior-assert/TestInferiorAssert.py b/lldb/test/functionalities/inferior-assert/TestInferiorAssert.py index 8039373b98d..a862de40b3b 100644 --- a/lldb/test/functionalities/inferior-assert/TestInferiorAssert.py +++ b/lldb/test/functionalities/inferior-assert/TestInferiorAssert.py @@ -105,7 +105,7 @@ class AssertingInferiorTestCase(TestBase): exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) stop_reason = self.check_stop_reason() # And it should report a backtrace that includes the assert site. @@ -145,7 +145,7 @@ class AssertingInferiorTestCase(TestBase): exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.check_stop_reason() # lldb should be able to read from registers from the inferior after asserting. @@ -173,7 +173,7 @@ class AssertingInferiorTestCase(TestBase): for frame in thread: self.assertTrue(frame.IsValid(), "current frame is valid") - self.runCmd("frame select " + str(frame.GetFrameID()), RUN_FAILED) + self.runCmd("frame select " + str(frame.GetFrameID()), RUN_SUCCEEDED) # 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 @@ class AssertingInferiorTestCase(TestBase): if 'main' == frame.GetFunctionName(): frame_id = frame.GetFrameID() - self.runCmd("frame select " + str(frame_id), RUN_FAILED) + self.runCmd("frame select " + str(frame_id), RUN_SUCCEEDED) self.expect("p argc", substrs = ['(int)', ' = 1']) self.expect("p hello_world", substrs = ['Hello']) self.expect("p argv[0]", substrs = ['a.out']) diff --git a/lldb/test/functionalities/inferior-changed/TestInferiorChanged.py b/lldb/test/functionalities/inferior-changed/TestInferiorChanged.py index 4e10a8d4f13..5f47be70774 100644 --- a/lldb/test/functionalities/inferior-changed/TestInferiorChanged.py +++ b/lldb/test/functionalities/inferior-changed/TestInferiorChanged.py @@ -48,7 +48,7 @@ class ChangedInferiorTestCase(TestBase): self.exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + self.exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # We should have one crashing thread self.assertEquals( @@ -65,7 +65,7 @@ class ChangedInferiorTestCase(TestBase): # 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.runCmd("process status") self.assertNotEquals( @@ -76,7 +76,7 @@ class ChangedInferiorTestCase(TestBase): # 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/inferior-crashing/TestInferiorCrashing.py b/lldb/test/functionalities/inferior-crashing/TestInferiorCrashing.py index 3b3b551f759..f1b5bc5487b 100644 --- a/lldb/test/functionalities/inferior-crashing/TestInferiorCrashing.py +++ b/lldb/test/functionalities/inferior-crashing/TestInferiorCrashing.py @@ -110,7 +110,7 @@ class CrashingInferiorTestCase(TestBase): exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The exact stop reason depends on the platform if self.platformIsDarwin(): stop_reason = 'stop reason = EXC_BAD_ACCESS' @@ -154,7 +154,7 @@ class CrashingInferiorTestCase(TestBase): exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.check_stop_reason() # lldb should be able to read from registers from the inferior after crashing. @@ -165,7 +165,7 @@ class CrashingInferiorTestCase(TestBase): exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.check_stop_reason() # The lldb expression interpreter should be able to read from addresses of the inferior after a crash. @@ -181,7 +181,7 @@ class CrashingInferiorTestCase(TestBase): self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) self.set_breakpoint(self.line) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, substrs = ['main.c:%d' % self.line, @@ -208,7 +208,7 @@ class CrashingInferiorTestCase(TestBase): exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.check_stop_reason() expected_state = 'exited' # Provide the exit code. @@ -230,7 +230,7 @@ class CrashingInferiorTestCase(TestBase): exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.check_stop_reason() # The lldb expression interpreter should be able to read from addresses of the inferior after a crash. diff --git a/lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py b/lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py index 8481510e943..9935db254e1 100644 --- a/lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py +++ b/lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py @@ -107,7 +107,7 @@ class CrashingRecursiveInferiorTestCase(TestBase): exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The exact stop reason depends on the platform if self.platformIsDarwin(): @@ -156,7 +156,7 @@ class CrashingRecursiveInferiorTestCase(TestBase): exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.check_stop_reason() # lldb should be able to read from registers from the inferior after crashing. @@ -167,7 +167,7 @@ class CrashingRecursiveInferiorTestCase(TestBase): exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.check_stop_reason() # The lldb expression interpreter should be able to read from addresses of the inferior after a crash. @@ -180,7 +180,7 @@ class CrashingRecursiveInferiorTestCase(TestBase): self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) self.set_breakpoint(self.line) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, substrs = ['main.c:%d' % self.line, @@ -205,7 +205,7 @@ class CrashingRecursiveInferiorTestCase(TestBase): exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.check_stop_reason() expected_state = 'exited' # Provide the exit code. @@ -228,7 +228,7 @@ class CrashingRecursiveInferiorTestCase(TestBase): exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.check_stop_reason() # The lldb expression interpreter should be able to read from addresses of the inferior after a crash. diff --git a/lldb/test/functionalities/load_unload/TestLoadUnload.py b/lldb/test/functionalities/load_unload/TestLoadUnload.py index 2ab0d3d3d64..6e1f42f135d 100644 --- a/lldb/test/functionalities/load_unload/TestLoadUnload.py +++ b/lldb/test/functionalities/load_unload/TestLoadUnload.py @@ -191,7 +191,7 @@ class LoadUnloadTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) if lldb.remote_platform: shlib_dir = lldb.remote_platform.GetWorkingDirectory() @@ -249,7 +249,7 @@ class LoadUnloadTestCase(TestBase): # 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint and at a_function. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -291,7 +291,7 @@ class LoadUnloadTestCase(TestBase): # 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint and at a_function. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/longjmp/TestLongjmp.py b/lldb/test/functionalities/longjmp/TestLongjmp.py index 2fdb66daffa..7898636e9df 100644 --- a/lldb/test/functionalities/longjmp/TestLongjmp.py +++ b/lldb/test/functionalities/longjmp/TestLongjmp.py @@ -47,7 +47,7 @@ class LongjmpTestCase(TestBase): # Break in main(). lldbutil.run_break_set_by_symbol (self, symbol, num_expected_locations=-1) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -61,21 +61,21 @@ class LongjmpTestCase(TestBase): def step_out(self): self.start_test("do_jump") - self.runCmd("thread step-out", RUN_FAILED) + self.runCmd("thread step-out", RUN_SUCCEEDED) self.check_status() def step_over(self): self.start_test("do_jump") - self.runCmd("thread step-over", RUN_FAILED) - self.runCmd("thread step-over", RUN_FAILED) + self.runCmd("thread step-over", RUN_SUCCEEDED) + self.runCmd("thread step-over", RUN_SUCCEEDED) self.check_status() def step_back_out(self): self.start_test("main") - self.runCmd("thread step-over", RUN_FAILED) - self.runCmd("thread step-in", RUN_FAILED) - self.runCmd("thread step-out", RUN_FAILED) + self.runCmd("thread step-over", RUN_SUCCEEDED) + self.runCmd("thread step-in", RUN_SUCCEEDED) + self.runCmd("thread step-out", RUN_SUCCEEDED) self.check_status() if __name__ == '__main__': diff --git a/lldb/test/functionalities/memory/read/TestMemoryRead.py b/lldb/test/functionalities/memory/read/TestMemoryRead.py index b3f772a7b1f..427a8d4f504 100644 --- a/lldb/test/functionalities/memory/read/TestMemoryRead.py +++ b/lldb/test/functionalities/memory/read/TestMemoryRead.py @@ -41,7 +41,7 @@ class MemoryReadTestCase(TestBase): # 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/non-overlapping-index-variable-i/TestIndexVariable.py b/lldb/test/functionalities/non-overlapping-index-variable-i/TestIndexVariable.py index ae31a333b28..d2a127e999d 100644 --- a/lldb/test/functionalities/non-overlapping-index-variable-i/TestIndexVariable.py +++ b/lldb/test/functionalities/non-overlapping-index-variable-i/TestIndexVariable.py @@ -29,7 +29,7 @@ class NonOverlappingIndexVariableCase(TestBase): 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/recursion/TestValueObjectRecursion.py b/lldb/test/functionalities/recursion/TestValueObjectRecursion.py index 71544d0a89c..42724d58894 100644 --- a/lldb/test/functionalities/recursion/TestValueObjectRecursion.py +++ b/lldb/test/functionalities/recursion/TestValueObjectRecursion.py @@ -37,7 +37,7 @@ class ValueObjectRecursionTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/register/TestRegisters.py b/lldb/test/functionalities/register/TestRegisters.py index 81a68f50bfc..b78a2549edc 100644 --- a/lldb/test/functionalities/register/TestRegisters.py +++ b/lldb/test/functionalities/register/TestRegisters.py @@ -75,7 +75,7 @@ class RegisterCommandsTestCase(TestBase): # Break in main(). lldbutil.run_break_set_by_symbol (self, "main", num_expected_locations=-1) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -102,7 +102,7 @@ class RegisterCommandsTestCase(TestBase): 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_FAILED) + self.runCmd("log enable " + self.platform + " " + str(category) + " registers -v -f " + self.log_file, RUN_SUCCEEDED) if not self.has_teardown: self.has_teardown = True self.addTearDownHook(self.remove_log) diff --git a/lldb/test/functionalities/set-data/TestSetData.py b/lldb/test/functionalities/set-data/TestSetData.py index 05397548579..07fdc7e0d68 100644 --- a/lldb/test/functionalities/set-data/TestSetData.py +++ b/lldb/test/functionalities/set-data/TestSetData.py @@ -27,7 +27,7 @@ class SetDataTestCase(TestBase): self.runCmd("br s -p First"); self.runCmd("br s -p Second"); - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.expect("p myFoo.x", VARIABLES_DISPLAYED_CORRECTLY, substrs = ['2']) diff --git a/lldb/test/functionalities/target_command/TestTargetCommand.py b/lldb/test/functionalities/target_command/TestTargetCommand.py index edb18abe9f7..8cf327ae32b 100644 --- a/lldb/test/functionalities/target_command/TestTargetCommand.py +++ b/lldb/test/functionalities/target_command/TestTargetCommand.py @@ -82,15 +82,15 @@ class targetCommandTestCase(TestBase): break; self.runCmd("target create " + exe_a, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.runCmd("target list") diff --git a/lldb/test/functionalities/thread/TestNumThreads.py b/lldb/test/functionalities/thread/TestNumThreads.py index c308ec003bc..a7d015048a5 100644 --- a/lldb/test/functionalities/thread/TestNumThreads.py +++ b/lldb/test/functionalities/thread/TestNumThreads.py @@ -44,7 +44,7 @@ class NumberOfThreadsTestCase(TestBase): substrs = ["1: file = 'main.cpp', line = %d, exact_match = 0, locations = 1" % self.line]) # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # Stopped once. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/thread/break_after_join/TestBreakAfterJoin.py b/lldb/test/functionalities/thread/break_after_join/TestBreakAfterJoin.py index 1d2e1119b42..96b2d6a98a9 100644 --- a/lldb/test/functionalities/thread/break_after_join/TestBreakAfterJoin.py +++ b/lldb/test/functionalities/thread/break_after_join/TestBreakAfterJoin.py @@ -48,7 +48,7 @@ class BreakpointAfterJoinTestCase(TestBase): substrs = ["1: file = 'main.cpp', line = %d, exact_match = 0, locations = 1" % self.breakpoint]) # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py b/lldb/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py index c4643ab461a..f0f2c3fe629 100644 --- a/lldb/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py +++ b/lldb/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py @@ -428,7 +428,7 @@ class ConcurrentEventsTestCase(TestBase): self.expect("breakpoint list -f", "Breakpoint locations shown correctly", substrs = expected_bps) # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # Check we are at line self.setup_breakpoint self.expect("thread backtrace", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/thread/create_during_step/TestCreateDuringStep.py b/lldb/test/functionalities/thread/create_during_step/TestCreateDuringStep.py index ec8c0551c75..b13fec6fb86 100644 --- a/lldb/test/functionalities/thread/create_during_step/TestCreateDuringStep.py +++ b/lldb/test/functionalities/thread/create_during_step/TestCreateDuringStep.py @@ -95,7 +95,7 @@ class CreateDuringStepTestCase(TestBase): substrs = ["1: file = 'main.cpp', line = %d, locations = 1" % self.breakpoint]) # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/thread/exit_during_break/TestExitDuringBreak.py b/lldb/test/functionalities/thread/exit_during_break/TestExitDuringBreak.py index 4bc9f64e3d3..70b50ec1a8c 100644 --- a/lldb/test/functionalities/thread/exit_during_break/TestExitDuringBreak.py +++ b/lldb/test/functionalities/thread/exit_during_break/TestExitDuringBreak.py @@ -48,7 +48,7 @@ class ExitDuringBreakpointTestCase(TestBase): substrs = ["1: file = 'main.cpp', line = %d, locations = 1" % self.breakpoint]) # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/thread/exit_during_step/TestExitDuringStep.py b/lldb/test/functionalities/thread/exit_during_step/TestExitDuringStep.py index f16fda29c2e..f04215cbd67 100644 --- a/lldb/test/functionalities/thread/exit_during_step/TestExitDuringStep.py +++ b/lldb/test/functionalities/thread/exit_during_step/TestExitDuringStep.py @@ -109,7 +109,7 @@ class ExitDuringStepTestCase(TestBase): substrs = ["1: file = 'main.cpp', line = %d, exact_match = 0, locations = 1" % self.breakpoint]) # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/thread/jump/TestThreadJump.py b/lldb/test/functionalities/thread/jump/TestThreadJump.py index 605d692da33..d1c279fd7d2 100644 --- a/lldb/test/functionalities/thread/jump/TestThreadJump.py +++ b/lldb/test/functionalities/thread/jump/TestThreadJump.py @@ -46,7 +46,7 @@ class ThreadJumpTestCase(TestBase): 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint 1. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT + " 1", diff --git a/lldb/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py b/lldb/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py index 3247be7ad08..55b9042c1f5 100644 --- a/lldb/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py +++ b/lldb/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py @@ -48,7 +48,7 @@ class MultipleBreakpointTestCase(TestBase): substrs = ["1: file = 'main.cpp', line = %d, locations = 1" % self.breakpoint]) # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. # The breakpoint may be hit in either thread 2 or thread 3. diff --git a/lldb/test/functionalities/thread/state/TestThreadStates.py b/lldb/test/functionalities/thread/state/TestThreadStates.py index 61a85585ca8..abc06b7115f 100644 --- a/lldb/test/functionalities/thread/state/TestThreadStates.py +++ b/lldb/test/functionalities/thread/state/TestThreadStates.py @@ -111,7 +111,7 @@ class ThreadStateTestCase(TestBase): substrs = ["1: file = 'main.c', line = %d, locations = 1" % self.break_1]) # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -152,7 +152,7 @@ class ThreadStateTestCase(TestBase): substrs = ["1: file = 'main.c', line = %d, exact_match = 0, locations = 1" % self.break_1]) # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -201,7 +201,7 @@ class ThreadStateTestCase(TestBase): substrs = ["1: file = 'main.c', line = %d, locations = 1" % self.break_1]) # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -245,7 +245,7 @@ class ThreadStateTestCase(TestBase): substrs = ["1: file = 'main.c', line = %d, locations = 1" % self.break_1]) # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -300,7 +300,7 @@ class ThreadStateTestCase(TestBase): "2: file = 'main.c', line = %d, locations = 1" % self.break_2]) # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/thread/step_out/TestThreadStepOut.py b/lldb/test/functionalities/thread/step_out/TestThreadStepOut.py index ef6a718ebe2..84d17c81cf2 100644 --- a/lldb/test/functionalities/thread/step_out/TestThreadStepOut.py +++ b/lldb/test/functionalities/thread/step_out/TestThreadStepOut.py @@ -113,7 +113,7 @@ class ThreadStepOutTestCase(TestBase): substrs = ["1: file = 'main.cpp', line = %d, exact_match = 0, locations = 1" % self.breakpoint]) # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # Get the target process self.inferior_target = self.dbg.GetSelectedTarget() diff --git a/lldb/test/functionalities/thread/thread_exit/TestThreadExit.py b/lldb/test/functionalities/thread/thread_exit/TestThreadExit.py index b21418f9fd3..7b8ed18512b 100644 --- a/lldb/test/functionalities/thread/thread_exit/TestThreadExit.py +++ b/lldb/test/functionalities/thread/thread_exit/TestThreadExit.py @@ -56,7 +56,7 @@ class ThreadExitTestCase(TestBase): "4: file = 'main.cpp', line = %d, exact_match = 0, locations = 1" % self.break_4]) # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint 1. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT + " 1", diff --git a/lldb/test/functionalities/type_completion/TestTypeCompletion.py b/lldb/test/functionalities/type_completion/TestTypeCompletion.py index 7f80eb026d3..361aa4a7867 100644 --- a/lldb/test/functionalities/type_completion/TestTypeCompletion.py +++ b/lldb/test/functionalities/type_completion/TestTypeCompletion.py @@ -37,7 +37,7 @@ class TypeCompletionTestCase(TestBase): lldbutil.run_break_set_by_source_regexp (self, "// Set break point at this line.") - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/value_md5_crash/TestValueMD5Crash.py b/lldb/test/functionalities/value_md5_crash/TestValueMD5Crash.py index 75a88bf7850..fa1a290c989 100644 --- a/lldb/test/functionalities/value_md5_crash/TestValueMD5Crash.py +++ b/lldb/test/functionalities/value_md5_crash/TestValueMD5Crash.py @@ -37,7 +37,7 @@ class ValueMD5CrashTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/watchpoint/hello_watchlocation/TestWatchLocation.py b/lldb/test/functionalities/watchpoint/hello_watchlocation/TestWatchLocation.py index 1f58831128f..b70b4f1a5e1 100644 --- a/lldb/test/functionalities/watchpoint/hello_watchlocation/TestWatchLocation.py +++ b/lldb/test/functionalities/watchpoint/hello_watchlocation/TestWatchLocation.py @@ -51,7 +51,7 @@ class HelloWatchLocationTestCase(TestBase): 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. diff --git a/lldb/test/functionalities/watchpoint/hello_watchpoint/TestMyFirstWatchpoint.py b/lldb/test/functionalities/watchpoint/hello_watchpoint/TestMyFirstWatchpoint.py index b157f45316e..16a3d9d212f 100644 --- a/lldb/test/functionalities/watchpoint/hello_watchpoint/TestMyFirstWatchpoint.py +++ b/lldb/test/functionalities/watchpoint/hello_watchpoint/TestMyFirstWatchpoint.py @@ -51,7 +51,7 @@ class HelloWatchpointTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1) # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. diff --git a/lldb/test/functionalities/watchpoint/multiple_threads/TestWatchpointMultipleThreads.py b/lldb/test/functionalities/watchpoint/multiple_threads/TestWatchpointMultipleThreads.py index e0860d370c1..a6d7a8451b1 100644 --- a/lldb/test/functionalities/watchpoint/multiple_threads/TestWatchpointMultipleThreads.py +++ b/lldb/test/functionalities/watchpoint/multiple_threads/TestWatchpointMultipleThreads.py @@ -59,7 +59,7 @@ class WatchpointForMultipleThreadsTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, None, self.first_stop, num_expected_locations=1) # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. @@ -103,7 +103,7 @@ class WatchpointForMultipleThreadsTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, None, self.first_stop, num_expected_locations=1) # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. diff --git a/lldb/test/functionalities/watchpoint/variable_out_of_scope/TestWatchedVarHitWhenInScope.py b/lldb/test/functionalities/watchpoint/variable_out_of_scope/TestWatchedVarHitWhenInScope.py index 0bb88339d71..5f9a7f1e136 100644 --- a/lldb/test/functionalities/watchpoint/variable_out_of_scope/TestWatchedVarHitWhenInScope.py +++ b/lldb/test/functionalities/watchpoint/variable_out_of_scope/TestWatchedVarHitWhenInScope.py @@ -53,7 +53,7 @@ class WatchedVariableHitWhenInScopeTestCase(TestBase): lldbutil.run_break_set_by_symbol (self, "main", num_expected_locations=-1) # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. diff --git a/lldb/test/functionalities/watchpoint/watchpoint_commands/TestWatchpointCommands.py b/lldb/test/functionalities/watchpoint/watchpoint_commands/TestWatchpointCommands.py index 7afb4dab117..74c5d11d73d 100644 --- a/lldb/test/functionalities/watchpoint/watchpoint_commands/TestWatchpointCommands.py +++ b/lldb/test/functionalities/watchpoint/watchpoint_commands/TestWatchpointCommands.py @@ -110,7 +110,7 @@ class WatchpointCommandsTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1) # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. @@ -165,7 +165,7 @@ class WatchpointCommandsTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1) # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. @@ -205,7 +205,7 @@ class WatchpointCommandsTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1) # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. @@ -249,7 +249,7 @@ class WatchpointCommandsTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.m") # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. @@ -304,7 +304,7 @@ class WatchpointCommandsTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1) # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. @@ -344,7 +344,7 @@ class WatchpointCommandsTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1) # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. @@ -388,7 +388,7 @@ class WatchpointCommandsTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1) # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. @@ -443,7 +443,7 @@ class WatchpointCommandsTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, None, self.line2, num_expected_locations=1) # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. diff --git a/lldb/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py b/lldb/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py index c730fa1a071..025d1f40bcc 100644 --- a/lldb/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py +++ b/lldb/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py @@ -64,7 +64,7 @@ class WatchpointLLDBCommandTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1) # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. @@ -113,7 +113,7 @@ class WatchpointLLDBCommandTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1) # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. diff --git a/lldb/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandPython.py b/lldb/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandPython.py index d61b1a395c9..0c6066d80c8 100644 --- a/lldb/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandPython.py +++ b/lldb/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandPython.py @@ -53,7 +53,7 @@ class WatchpointPythonCommandTestCase(TestBase): # (self.source, self.line))# # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. diff --git a/lldb/test/functionalities/watchpoint/watchpoint_commands/condition/TestWatchpointConditionCmd.py b/lldb/test/functionalities/watchpoint/watchpoint_commands/condition/TestWatchpointConditionCmd.py index cda9bcefac0..21e1d992d26 100644 --- a/lldb/test/functionalities/watchpoint/watchpoint_commands/condition/TestWatchpointConditionCmd.py +++ b/lldb/test/functionalities/watchpoint/watchpoint_commands/condition/TestWatchpointConditionCmd.py @@ -49,7 +49,7 @@ class WatchpointConditionCmdTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1) # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. diff --git a/lldb/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py b/lldb/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py index fbc162744f3..fa32db6c9df 100644 --- a/lldb/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py +++ b/lldb/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py @@ -48,7 +48,7 @@ class WatchLocationUsingWatchpointSetTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1) # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. diff --git a/lldb/test/functionalities/watchpoint/watchpoint_set_command/TestWatchpointSetErrorCases.py b/lldb/test/functionalities/watchpoint/watchpoint_set_command/TestWatchpointSetErrorCases.py index 86039b0dcee..e445b46afc6 100644 --- a/lldb/test/functionalities/watchpoint/watchpoint_set_command/TestWatchpointSetErrorCases.py +++ b/lldb/test/functionalities/watchpoint/watchpoint_set_command/TestWatchpointSetErrorCases.py @@ -37,7 +37,7 @@ class WatchpointSetErrorTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1) # Run the program. - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. diff --git a/lldb/test/lang/c/array_types/TestArrayTypes.py b/lldb/test/lang/c/array_types/TestArrayTypes.py index 994d24a6943..e5fdf291b16 100644 --- a/lldb/test/lang/c/array_types/TestArrayTypes.py +++ b/lldb/test/lang/c/array_types/TestArrayTypes.py @@ -51,7 +51,7 @@ class ArrayTypesTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line, num_expected_locations=1, loc_exact=False) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The test suite sometimes shows that the process has exited without stopping. # diff --git a/lldb/test/lang/c/bitfields/TestBitfields.py b/lldb/test/lang/c/bitfields/TestBitfields.py index 495660bb541..15d33057abd 100644 --- a/lldb/test/lang/c/bitfields/TestBitfields.py +++ b/lldb/test/lang/c/bitfields/TestBitfields.py @@ -54,7 +54,7 @@ class BitfieldsTestCase(TestBase): # 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/lang/c/blocks/TestBlocks.py b/lldb/test/lang/c/blocks/TestBlocks.py index 7fac63e0bb3..1a247e90451 100644 --- a/lldb/test/lang/c/blocks/TestBlocks.py +++ b/lldb/test/lang/c/blocks/TestBlocks.py @@ -43,9 +43,9 @@ class BlocksTestCase(TestBase): def wait_for_breakpoint(self): if self.is_started == False: self.is_started = True - self.runCmd("process launch", RUN_FAILED) + self.runCmd("process launch", RUN_SUCCEEDED) else: - self.runCmd("process continue", RUN_FAILED) + self.runCmd("process continue", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/lang/c/const_variables/TestConstVariables.py b/lldb/test/lang/c/const_variables/TestConstVariables.py index 456b03e91ae..a3a031e5087 100644 --- a/lldb/test/lang/c/const_variables/TestConstVariables.py +++ b/lldb/test/lang/c/const_variables/TestConstVariables.py @@ -36,7 +36,7 @@ class ConstVariableTestCase(TestBase): # Break inside the main. lldbutil.run_break_set_by_symbol (self, "main", num_expected_locations=1) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/lang/c/enum_types/TestEnumTypes.py b/lldb/test/lang/c/enum_types/TestEnumTypes.py index 6844f2312b2..7ca36e1c236 100644 --- a/lldb/test/lang/c/enum_types/TestEnumTypes.py +++ b/lldb/test/lang/c/enum_types/TestEnumTypes.py @@ -39,7 +39,7 @@ class EnumTypesTestCase(TestBase): # 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/lang/c/forward/TestForwardDeclaration.py b/lldb/test/lang/c/forward/TestForwardDeclaration.py index bc1388d8006..6fb0eb9645a 100644 --- a/lldb/test/lang/c/forward/TestForwardDeclaration.py +++ b/lldb/test/lang/c/forward/TestForwardDeclaration.py @@ -35,7 +35,7 @@ class ForwardDeclarationTestCase(TestBase): # 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/lang/c/function_types/TestFunctionTypes.py b/lldb/test/lang/c/function_types/TestFunctionTypes.py index 4d69f8ce45d..9863e05e876 100644 --- a/lldb/test/lang/c/function_types/TestFunctionTypes.py +++ b/lldb/test/lang/c/function_types/TestFunctionTypes.py @@ -49,7 +49,7 @@ class FunctionTypesTestCase(TestBase): # 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/lang/c/modules/TestCModules.py b/lldb/test/lang/c/modules/TestCModules.py index 3109050e5a0..9bec4c5f32c 100644 --- a/lldb/test/lang/c/modules/TestCModules.py +++ b/lldb/test/lang/c/modules/TestCModules.py @@ -48,7 +48,7 @@ class CModulesTestCase(TestBase): # 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/lang/c/register_variables/TestRegisterVariables.py b/lldb/test/lang/c/register_variables/TestRegisterVariables.py index 336d537a75a..101e5c1e4da 100644 --- a/lldb/test/lang/c/register_variables/TestRegisterVariables.py +++ b/lldb/test/lang/c/register_variables/TestRegisterVariables.py @@ -40,7 +40,7 @@ class RegisterVariableTestCase(TestBase): #################### # First breakpoint - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/lang/c/set_values/TestSetValues.py b/lldb/test/lang/c/set_values/TestSetValues.py index 7f9f12b9ee6..f914cfae8c3 100644 --- a/lldb/test/lang/c/set_values/TestSetValues.py +++ b/lldb/test/lang/c/set_values/TestSetValues.py @@ -49,7 +49,7 @@ class SetValuesTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line5, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/lang/c/stepping/TestThreadStepping.py b/lldb/test/lang/c/stepping/TestThreadStepping.py index 69ede5f9397..13c8ce88ddc 100644 --- a/lldb/test/lang/c/stepping/TestThreadStepping.py +++ b/lldb/test/lang/c/stepping/TestThreadStepping.py @@ -44,7 +44,7 @@ class ThreadSteppingTestCase(TestBase): 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The process should be stopped at this point. self.expect("process status", PROCESS_STOPPED, diff --git a/lldb/test/lang/c/strings/TestCStrings.py b/lldb/test/lang/c/strings/TestCStrings.py index fd2b1a06b06..ee6348160f9 100644 --- a/lldb/test/lang/c/strings/TestCStrings.py +++ b/lldb/test/lang/c/strings/TestCStrings.py @@ -34,7 +34,7 @@ class CStringsTestCase(TestBase): self.set_breakpoint(line_number('main.c', '// breakpoint 1')) - self.runCmd("process launch", RUN_FAILED) + self.runCmd("process launch", RUN_SUCCEEDED) self.expect("expression -- a[2]", patterns = ["\((const )?char\) \$0 = 'c'"]) diff --git a/lldb/test/lang/c/tls_globals/TestTlsGlobals.py b/lldb/test/lang/c/tls_globals/TestTlsGlobals.py index 87497dd4fa4..f0165e77c62 100644 --- a/lldb/test/lang/c/tls_globals/TestTlsGlobals.py +++ b/lldb/test/lang/c/tls_globals/TestTlsGlobals.py @@ -44,7 +44,7 @@ class TlsGlobalTestCase(TestBase): 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.runCmd("process status", "Get process status") @@ -65,7 +65,7 @@ class TlsGlobalTestCase(TestBase): # 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_FAILED) + self.runCmd("continue", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.runCmd("process status", "Get process status") diff --git a/lldb/test/lang/cpp/bool/TestCPPBool.py b/lldb/test/lang/cpp/bool/TestCPPBool.py index fbe60f4e979..fc1c57416e9 100644 --- a/lldb/test/lang/cpp/bool/TestCPPBool.py +++ b/lldb/test/lang/cpp/bool/TestCPPBool.py @@ -36,7 +36,7 @@ class CPPBoolTestCase(TestBase): self.set_breakpoint(line_number('main.cpp', '// breakpoint 1')) - self.runCmd("process launch", RUN_FAILED) + self.runCmd("process launch", RUN_SUCCEEDED) self.expect("expression -- bool second_bool = my_bool; second_bool", startstr = "(bool) $0 = false") diff --git a/lldb/test/lang/cpp/call-function/TestCallCPPFunction.py b/lldb/test/lang/cpp/call-function/TestCallCPPFunction.py index 1adf6f1d408..cb0725a952c 100644 --- a/lldb/test/lang/cpp/call-function/TestCallCPPFunction.py +++ b/lldb/test/lang/cpp/call-function/TestCallCPPFunction.py @@ -33,7 +33,7 @@ class CallCPPFunctionTestCase(TestBase): 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_FAILED) + self.runCmd("process launch", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", diff --git a/lldb/test/lang/cpp/class_static/TestStaticVariables.py b/lldb/test/lang/cpp/class_static/TestStaticVariables.py index c5aa99089d8..65e870eae74 100644 --- a/lldb/test/lang/cpp/class_static/TestStaticVariables.py +++ b/lldb/test/lang/cpp/class_static/TestStaticVariables.py @@ -59,7 +59,7 @@ class StaticVariableTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/lang/cpp/class_types/TestClassTypes.py b/lldb/test/lang/cpp/class_types/TestClassTypes.py index 3c571c9fea6..f0cbf1f8c97 100644 --- a/lldb/test/lang/cpp/class_types/TestClassTypes.py +++ b/lldb/test/lang/cpp/class_types/TestClassTypes.py @@ -93,7 +93,7 @@ class ClassTypesTestCase(TestBase): # 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The test suite sometimes shows that the process has exited without stopping. # @@ -189,7 +189,7 @@ class ClassTypesTestCase(TestBase): # 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/lang/cpp/class_types/TestClassTypesDisassembly.py b/lldb/test/lang/cpp/class_types/TestClassTypesDisassembly.py index 0b7192c0a96..2e401147591 100644 --- a/lldb/test/lang/cpp/class_types/TestClassTypesDisassembly.py +++ b/lldb/test/lang/cpp/class_types/TestClassTypesDisassembly.py @@ -55,7 +55,7 @@ class IterateFrameAndDisassembleTestCase(TestBase): # 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/lang/cpp/enum_types/TestCPP11EnumTypes.py b/lldb/test/lang/cpp/enum_types/TestCPP11EnumTypes.py index ccdf30daf45..014a441625d 100644 --- a/lldb/test/lang/cpp/enum_types/TestCPP11EnumTypes.py +++ b/lldb/test/lang/cpp/enum_types/TestCPP11EnumTypes.py @@ -128,7 +128,7 @@ class CPP11EnumTypesTestCase(TestBase): # 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/lang/cpp/namespace/TestNamespace.py b/lldb/test/lang/cpp/namespace/TestNamespace.py index 700d328f592..1241126e23a 100644 --- a/lldb/test/lang/cpp/namespace/TestNamespace.py +++ b/lldb/test/lang/cpp/namespace/TestNamespace.py @@ -45,7 +45,7 @@ class NamespaceTestCase(TestBase): 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/lang/cpp/overloaded-functions/TestOverloadedFunctions.py b/lldb/test/lang/cpp/overloaded-functions/TestOverloadedFunctions.py index 7cd8dd124cd..0ae186ff286 100644 --- a/lldb/test/lang/cpp/overloaded-functions/TestOverloadedFunctions.py +++ b/lldb/test/lang/cpp/overloaded-functions/TestOverloadedFunctions.py @@ -33,7 +33,7 @@ class CPPStaticMethodsTestCase(TestBase): 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_FAILED) + self.runCmd("process launch", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", diff --git a/lldb/test/lang/cpp/rvalue-references/TestRvalueReferences.py b/lldb/test/lang/cpp/rvalue-references/TestRvalueReferences.py index f3bd39b4a53..435e19157ac 100644 --- a/lldb/test/lang/cpp/rvalue-references/TestRvalueReferences.py +++ b/lldb/test/lang/cpp/rvalue-references/TestRvalueReferences.py @@ -39,7 +39,7 @@ class RvalueReferencesTestCase(TestBase): self.set_breakpoint(line_number('main.cpp', '// breakpoint 1')) self.set_breakpoint(line_number('main.cpp', '// breakpoint 2')) - self.runCmd("process launch", RUN_FAILED) + self.runCmd("process launch", RUN_SUCCEEDED) # 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) diff --git a/lldb/test/lang/cpp/static_members/TestCPPStaticMembers.py b/lldb/test/lang/cpp/static_members/TestCPPStaticMembers.py index 8dae233b1fa..83516b72483 100644 --- a/lldb/test/lang/cpp/static_members/TestCPPStaticMembers.py +++ b/lldb/test/lang/cpp/static_members/TestCPPStaticMembers.py @@ -37,7 +37,7 @@ class CPPStaticMembersTestCase(TestBase): self.set_breakpoint(line_number('main.cpp', '// breakpoint 1')) self.set_breakpoint(line_number('main.cpp', '// breakpoint 2')) - self.runCmd("process launch", RUN_FAILED) + self.runCmd("process launch", RUN_SUCCEEDED) self.expect("expression my_a.access()", startstr = "(long) $0 = 10") diff --git a/lldb/test/lang/cpp/static_methods/TestCPPStaticMethods.py b/lldb/test/lang/cpp/static_methods/TestCPPStaticMethods.py index cca5b8956fc..8fa358c7b51 100644 --- a/lldb/test/lang/cpp/static_methods/TestCPPStaticMethods.py +++ b/lldb/test/lang/cpp/static_methods/TestCPPStaticMethods.py @@ -33,7 +33,7 @@ class CPPStaticMethodsTestCase(TestBase): 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_FAILED) + self.runCmd("process launch", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", diff --git a/lldb/test/lang/cpp/stl/TestSTL.py b/lldb/test/lang/cpp/stl/TestSTL.py index 0df8a591eb3..4a1b2e0eb2f 100644 --- a/lldb/test/lang/cpp/stl/TestSTL.py +++ b/lldb/test/lang/cpp/stl/TestSTL.py @@ -67,7 +67,7 @@ class STLTestCase(TestBase): # 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # Stop at 'std::string hello_world ("Hello World!");'. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/lang/cpp/stl/TestStdCXXDisassembly.py b/lldb/test/lang/cpp/stl/TestStdCXXDisassembly.py index 7b25cdda613..eca9182cbc3 100644 --- a/lldb/test/lang/cpp/stl/TestStdCXXDisassembly.py +++ b/lldb/test/lang/cpp/stl/TestStdCXXDisassembly.py @@ -34,7 +34,7 @@ class StdCXXDisassembleTestCase(TestBase): # 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # Now let's get the target as well as the process objects. target = self.dbg.GetSelectedTarget() diff --git a/lldb/test/lang/cpp/this/TestCPPThis.py b/lldb/test/lang/cpp/this/TestCPPThis.py index b6621e56d53..ec82fe5bdce 100644 --- a/lldb/test/lang/cpp/this/TestCPPThis.py +++ b/lldb/test/lang/cpp/this/TestCPPThis.py @@ -43,7 +43,7 @@ class CPPThisTestCase(TestBase): self.set_breakpoint(line_number('main.cpp', '// breakpoint 3')) self.set_breakpoint(line_number('main.cpp', '// breakpoint 4')) - self.runCmd("process launch", RUN_FAILED) + self.runCmd("process launch", RUN_SUCCEEDED) self.expect("expression -- m_a = 2", startstr = "(int) $0 = 2") diff --git a/lldb/test/lang/cpp/unique-types/TestUniqueTypes.py b/lldb/test/lang/cpp/unique-types/TestUniqueTypes.py index 185280eeb28..799e2fdf23b 100644 --- a/lldb/test/lang/cpp/unique-types/TestUniqueTypes.py +++ b/lldb/test/lang/cpp/unique-types/TestUniqueTypes.py @@ -43,7 +43,7 @@ class UniqueTypesTestCase(TestBase): 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/lang/cpp/unsigned_types/TestUnsignedTypes.py b/lldb/test/lang/cpp/unsigned_types/TestUnsignedTypes.py index 1109c836a41..5959d863500 100644 --- a/lldb/test/lang/cpp/unsigned_types/TestUnsignedTypes.py +++ b/lldb/test/lang/cpp/unsigned_types/TestUnsignedTypes.py @@ -43,7 +43,7 @@ class UnsignedTypesTestCase(TestBase): # 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/lang/objc/foundation/TestConstStrings.py b/lldb/test/lang/objc/foundation/TestConstStrings.py index 1f9ea6a901f..ca644ba5455 100644 --- a/lldb/test/lang/objc/foundation/TestConstStrings.py +++ b/lldb/test/lang/objc/foundation/TestConstStrings.py @@ -43,7 +43,7 @@ class ConstStringTestCase(TestBase): 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.expect("process status", STOPPED_DUE_TO_BREAKPOINT, substrs = [" at %s:%d" % (self.main_source, self.line), "stop reason = breakpoint"]) diff --git a/lldb/test/lang/objc/foundation/TestFoundationDisassembly.py b/lldb/test/lang/objc/foundation/TestFoundationDisassembly.py index 243a6801c58..4fa78d86cbd 100644 --- a/lldb/test/lang/objc/foundation/TestFoundationDisassembly.py +++ b/lldb/test/lang/objc/foundation/TestFoundationDisassembly.py @@ -100,7 +100,7 @@ class FoundationDisassembleTestCase(TestBase): 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # First stop is +[NSString stringWithFormat:]. self.expect("thread backtrace", "Stop at +[NSString stringWithFormat:]", diff --git a/lldb/test/lang/objc/foundation/TestObjCMethods.py b/lldb/test/lang/objc/foundation/TestObjCMethods.py index d9cdb71da56..a9ae40865c4 100644 --- a/lldb/test/lang/objc/foundation/TestObjCMethods.py +++ b/lldb/test/lang/objc/foundation/TestObjCMethods.py @@ -77,7 +77,7 @@ class FoundationTestCase(TestBase): 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # First stop is +[NSString stringWithFormat:]. self.expect("thread backtrace", "Stop at +[NSString stringWithFormat:]", @@ -133,7 +133,7 @@ class FoundationTestCase(TestBase): # Stop at -[MyString initWithNSString:]. lldbutil.run_break_set_by_symbol (self, '-[MyString initWithNSString:]', num_expected_locations=1, sym_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) global file_index # Log any DWARF lookups @@ -179,7 +179,7 @@ class FoundationTestCase(TestBase): # self.expect("breakpoint set -n '-[MyString description]", BREAKPOINT_CREATED, # startstr = "Breakpoint created: 1: name = '-[MyString description]', locations = 1") - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The backtrace should show we stop at -[MyString description]. self.expect("thread backtrace", "Stop at -[MyString description]", diff --git a/lldb/test/lang/objc/foundation/TestObjCMethods2.py b/lldb/test/lang/objc/foundation/TestObjCMethods2.py index de313ab95c0..9f17730ce3f 100644 --- a/lldb/test/lang/objc/foundation/TestObjCMethods2.py +++ b/lldb/test/lang/objc/foundation/TestObjCMethods2.py @@ -107,7 +107,7 @@ class FoundationTestCase2(TestBase): 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # Test_Selector: self.runCmd("thread backtrace") @@ -142,7 +142,7 @@ class FoundationTestCase2(TestBase): 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # Test_NSArray: self.runCmd("thread backtrace") @@ -167,7 +167,7 @@ class FoundationTestCase2(TestBase): 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # Test_NSString: self.runCmd("thread backtrace") @@ -195,7 +195,7 @@ class FoundationTestCase2(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.m", line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.expect("expression --show-types -- *my", patterns = ["\(MyString\) \$.* = ", "\(MyBase\)", "\(NSObject\)", "\(Class\)"]) @@ -210,7 +210,7 @@ class FoundationTestCase2(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.m", line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.expect("po [NSError errorWithDomain:@\"Hello\" code:35 userInfo:nil]", substrs = ["Error Domain=Hello", "Code=35", "be completed."]) @@ -225,7 +225,7 @@ class FoundationTestCase2(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.m", line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.expect("p [NSError thisMethodIsntImplemented:0]", error = True, diff --git a/lldb/test/lang/objc/foundation/TestRuntimeTypes.py b/lldb/test/lang/objc/foundation/TestRuntimeTypes.py index d7ec4af15a9..20e38a62479 100644 --- a/lldb/test/lang/objc/foundation/TestRuntimeTypes.py +++ b/lldb/test/lang/objc/foundation/TestRuntimeTypes.py @@ -36,7 +36,7 @@ class RuntimeTypesTestCase(TestBase): # Stop at -[MyString description]. lldbutil.run_break_set_by_symbol (self, '-[MyString description]', num_expected_locations=1, sym_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The backtrace should show we stop at -[MyString description]. self.expect("thread backtrace", "Stop at -[MyString description]", diff --git a/lldb/test/lang/objc/hidden-ivars/TestHiddenIvars.py b/lldb/test/lang/objc/hidden-ivars/TestHiddenIvars.py index b67cdf7dea0..a7d52b0a298 100644 --- a/lldb/test/lang/objc/hidden-ivars/TestHiddenIvars.py +++ b/lldb/test/lang/objc/hidden-ivars/TestHiddenIvars.py @@ -122,7 +122,7 @@ class HiddenIvarsTestCase(TestBase): # 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/lang/objc/modules-auto-import/TestModulesAutoImport.py b/lldb/test/lang/objc/modules-auto-import/TestModulesAutoImport.py index c5a2c58630a..b8f4493823c 100644 --- a/lldb/test/lang/objc/modules-auto-import/TestModulesAutoImport.py +++ b/lldb/test/lang/objc/modules-auto-import/TestModulesAutoImport.py @@ -50,7 +50,7 @@ class ObjCModulesAutoImportTestCase(TestBase): # 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/lang/objc/modules-incomplete/TestIncompleteModules.py b/lldb/test/lang/objc/modules-incomplete/TestIncompleteModules.py index be6f40b1793..b552fd566a9 100644 --- a/lldb/test/lang/objc/modules-incomplete/TestIncompleteModules.py +++ b/lldb/test/lang/objc/modules-incomplete/TestIncompleteModules.py @@ -50,7 +50,7 @@ class IncompleteModulesTestCase(TestBase): # 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/lang/objc/modules-inline-functions/TestModulesInlineFunctions.py b/lldb/test/lang/objc/modules-inline-functions/TestModulesInlineFunctions.py index 2647ac1cbcd..a9c7ce65067 100644 --- a/lldb/test/lang/objc/modules-inline-functions/TestModulesInlineFunctions.py +++ b/lldb/test/lang/objc/modules-inline-functions/TestModulesInlineFunctions.py @@ -48,7 +48,7 @@ class ModulesInlineFunctionsTestCase(TestBase): # 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/lang/objc/modules/TestObjCModules.py b/lldb/test/lang/objc/modules/TestObjCModules.py index b8596100c06..0892b91db0f 100644 --- a/lldb/test/lang/objc/modules/TestObjCModules.py +++ b/lldb/test/lang/objc/modules/TestObjCModules.py @@ -50,7 +50,7 @@ class ObjCModulesTestCase(TestBase): # 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/lang/objc/objc++/TestObjCXX.py b/lldb/test/lang/objc/objc++/TestObjCXX.py index 4dd2b0c7829..eeb2bc8bf02 100644 --- a/lldb/test/lang/objc/objc++/TestObjCXX.py +++ b/lldb/test/lang/objc/objc++/TestObjCXX.py @@ -36,7 +36,7 @@ class ObjCXXTestCase(TestBase): lldbutil.run_break_set_by_source_regexp (self, 'breakpoint 1', num_expected_locations=1) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.expect("expr f->f", "Found ivar in class", substrs = ["= 3"]) diff --git a/lldb/test/lang/objc/objc-dyn-sbtype/TestObjCDynamicSBType.py b/lldb/test/lang/objc/objc-dyn-sbtype/TestObjCDynamicSBType.py index 4cf7ff05d8d..fd3ae8455e8 100644 --- a/lldb/test/lang/objc/objc-dyn-sbtype/TestObjCDynamicSBType.py +++ b/lldb/test/lang/objc/objc-dyn-sbtype/TestObjCDynamicSBType.py @@ -47,7 +47,7 @@ class ObjCDynamicSBTypeTestCase(TestBase): 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) v_object = self.frame().FindVariable("object").GetDynamicValue(lldb.eDynamicCanRunTarget) v_base = self.frame().FindVariable("base").GetDynamicValue(lldb.eDynamicCanRunTarget) diff --git a/lldb/test/lang/objc/objc-new-syntax/TestObjCNewSyntax.py b/lldb/test/lang/objc/objc-new-syntax/TestObjCNewSyntax.py index cef3adedba9..a5d342ff1f6 100644 --- a/lldb/test/lang/objc/objc-new-syntax/TestObjCNewSyntax.py +++ b/lldb/test/lang/objc/objc-new-syntax/TestObjCNewSyntax.py @@ -50,7 +50,7 @@ class ObjCNewSyntaxTestCase(TestBase): # 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/lang/objc/objc-optimized/TestObjcOptimized.py b/lldb/test/lang/objc/objc-optimized/TestObjcOptimized.py index 86da6df0678..507e29e6773 100644 --- a/lldb/test/lang/objc/objc-optimized/TestObjcOptimized.py +++ b/lldb/test/lang/objc/objc-optimized/TestObjcOptimized.py @@ -43,7 +43,7 @@ class ObjcOptimizedTestCase(TestBase): lldbutil.run_break_set_by_symbol (self, self.method_spec, num_expected_locations=1, sym_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.expect("thread backtrace", STOPPED_DUE_TO_BREAKPOINT, substrs = ["stop reason = breakpoint"], patterns = ["frame.*0:.*%s %s" % (self.myclass, self.mymethod)]) diff --git a/lldb/test/lang/objc/radar-9691614/TestObjCMethodReturningBOOL.py b/lldb/test/lang/objc/radar-9691614/TestObjCMethodReturningBOOL.py index beeedc4a10e..ff860e1ef3e 100644 --- a/lldb/test/lang/objc/radar-9691614/TestObjCMethodReturningBOOL.py +++ b/lldb/test/lang/objc/radar-9691614/TestObjCMethodReturningBOOL.py @@ -45,7 +45,7 @@ class MethodReturningBOOLTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.expect("process status", STOPPED_DUE_TO_BREAKPOINT, substrs = [" at %s:%d" % (self.main_source, self.line), "stop reason = breakpoint"]) diff --git a/lldb/test/lang/objc/rdar-10967107/TestRdar10967107.py b/lldb/test/lang/objc/rdar-10967107/TestRdar10967107.py index 906470ca8a0..c8f4c1fd2ca 100644 --- a/lldb/test/lang/objc/rdar-10967107/TestRdar10967107.py +++ b/lldb/test/lang/objc/rdar-10967107/TestRdar10967107.py @@ -45,7 +45,7 @@ class Rdar10967107TestCase(TestBase): 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # 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']) diff --git a/lldb/test/lang/objc/rdar-11355592/TestRdar11355592.py b/lldb/test/lang/objc/rdar-11355592/TestRdar11355592.py index d9258b97816..0cbb7388711 100644 --- a/lldb/test/lang/objc/rdar-11355592/TestRdar11355592.py +++ b/lldb/test/lang/objc/rdar-11355592/TestRdar11355592.py @@ -45,7 +45,7 @@ class Rdar10967107TestCase(TestBase): 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # 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 *']) diff --git a/lldb/test/lang/objc/rdar-12408181/TestRdar12408181.py b/lldb/test/lang/objc/rdar-12408181/TestRdar12408181.py index 0e8c60b288b..ddc94efca53 100644 --- a/lldb/test/lang/objc/rdar-12408181/TestRdar12408181.py +++ b/lldb/test/lang/objc/rdar-12408181/TestRdar12408181.py @@ -45,7 +45,7 @@ class Rdar12408181TestCase(TestBase): 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) window = self.frame().FindVariable("window") window_dynamic = window.GetDynamicValue(lldb.eDynamicCanRunTarget) self.assertTrue(window.GetNumChildren() > 1, "NSWindow (static) only has 1 child!") diff --git a/lldb/test/lang/objc/real-definition/TestRealDefinition.py b/lldb/test/lang/objc/real-definition/TestRealDefinition.py index cde2b9349c8..41f0b27db1d 100644 --- a/lldb/test/lang/objc/real-definition/TestRealDefinition.py +++ b/lldb/test/lang/objc/real-definition/TestRealDefinition.py @@ -65,7 +65,7 @@ class TestRealDefinition(TestBase): 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -76,7 +76,7 @@ class TestRealDefinition(TestBase): self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE, substrs = [' resolved, hit count = 1']) - self.runCmd("continue", RUN_FAILED) + self.runCmd("continue", RUN_SUCCEEDED) # Run at stop at main self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE, @@ -93,7 +93,7 @@ class TestRealDefinition(TestBase): 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -104,7 +104,7 @@ class TestRealDefinition(TestBase): self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE, substrs = [' resolved, hit count = 1']) - self.runCmd("continue", RUN_FAILED) + self.runCmd("continue", RUN_SUCCEEDED) # Run at stop at main self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE, diff --git a/lldb/test/lang/objc/self/TestObjCSelf.py b/lldb/test/lang/objc/self/TestObjCSelf.py index 700da39c605..1ed2283292e 100644 --- a/lldb/test/lang/objc/self/TestObjCSelf.py +++ b/lldb/test/lang/objc/self/TestObjCSelf.py @@ -36,7 +36,7 @@ class ObjCSelfTestCase(TestBase): self.set_breakpoint(line_number('main.m', '// breakpoint 1')) self.set_breakpoint(line_number('main.m', '// breakpoint 2')) - self.runCmd("process launch", RUN_FAILED) + self.runCmd("process launch", RUN_SUCCEEDED) self.expect("expression -- m_a = 2", startstr = "(int) $0 = 2") diff --git a/lldb/test/linux/builtin_trap/TestBuiltinTrap.py b/lldb/test/linux/builtin_trap/TestBuiltinTrap.py index 7bdeabbbc3e..a81683c9063 100644 --- a/lldb/test/linux/builtin_trap/TestBuiltinTrap.py +++ b/lldb/test/linux/builtin_trap/TestBuiltinTrap.py @@ -43,7 +43,7 @@ class BuiltinTrapTestCase(TestBase): num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -54,7 +54,7 @@ class BuiltinTrapTestCase(TestBase): self.expect('bt', substrs = ['bar', 'main']) # go up one frame - self.runCmd("up", RUN_FAILED) + self.runCmd("up", RUN_SUCCEEDED) # evaluate a local self.expect('p foo', substrs = ['= 5']) diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py index 4525e682f67..da475f6da34 100644 --- a/lldb/test/lldbtest.py +++ b/lldb/test/lldbtest.py @@ -92,7 +92,7 @@ PROCESS_EXITED = "Process exited successfully" PROCESS_STOPPED = "Process status should be stopped" -RUN_FAILED = "Process could not be launched successfully" +RUN_SUCCEEDED = "Process is launched successfully" RUN_COMPLETED = "Process exited successfully" @@ -165,18 +165,9 @@ VARIABLES_DISPLAYED_CORRECTLY = "Variable(s) displayed correctly" WATCHPOINT_CREATED = "Watchpoint created successfully" -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 CMD_MSG(str): + '''A generic "Command '%s' returns successfully" message generator.''' + return "Command '%s' returns successfully" % str def COMPLETION_MSG(str_before, str_after): '''A generic message generator for the completion mechanism.''' @@ -2446,9 +2437,8 @@ class TestBase(Base): print >> sbuf, "Command '" + cmd + "' failed!" if check: - self.assertTrue( - self.res.Succeeded(), - cmd_failure_message(cmd, self.res, msg)) + self.assertTrue(self.res.Succeeded(), + msg if msg else CMD_MSG(cmd)) 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 diff --git a/lldb/test/macosx/universal/TestUniversal.py b/lldb/test/macosx/universal/TestUniversal.py index 9f799364831..9c2c789dd4a 100644 --- a/lldb/test/macosx/universal/TestUniversal.py +++ b/lldb/test/macosx/universal/TestUniversal.py @@ -58,7 +58,7 @@ class UniversalTestCase(TestBase): 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # Check whether we have a 64-bit process launched. target = self.dbg.GetSelectedTarget() @@ -83,7 +83,7 @@ class UniversalTestCase(TestBase): 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # Check whether we have a 32-bit process launched. target = self.dbg.GetSelectedTarget() diff --git a/lldb/test/python_api/formatters/TestFormattersSBAPI.py b/lldb/test/python_api/formatters/TestFormattersSBAPI.py index 19a785244ab..b8806abf314 100644 --- a/lldb/test/python_api/formatters/TestFormattersSBAPI.py +++ b/lldb/test/python_api/formatters/TestFormattersSBAPI.py @@ -45,7 +45,7 @@ class SBFormattersAPITestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -308,7 +308,7 @@ class SBFormattersAPITestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/python_api/rdar-12481949/Test-rdar-12481949.py b/lldb/test/python_api/rdar-12481949/Test-rdar-12481949.py index 1790a45a0cb..49057851c96 100644 --- a/lldb/test/python_api/rdar-12481949/Test-rdar-12481949.py +++ b/lldb/test/python_api/rdar-12481949/Test-rdar-12481949.py @@ -38,7 +38,7 @@ class Radar12481949DataFormatterTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/python_api/sbdata/TestSBData.py b/lldb/test/python_api/sbdata/TestSBData.py index 0d1986c30db..cb4c6ae7aa9 100644 --- a/lldb/test/python_api/sbdata/TestSBData.py +++ b/lldb/test/python_api/sbdata/TestSBData.py @@ -51,7 +51,7 @@ class SBDataAPICase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/python_api/sbvalue_persist/TestSBValuePersist.py b/lldb/test/python_api/sbvalue_persist/TestSBValuePersist.py index 4d976ce32c1..407d417133c 100644 --- a/lldb/test/python_api/sbvalue_persist/TestSBValuePersist.py +++ b/lldb/test/python_api/sbvalue_persist/TestSBValuePersist.py @@ -37,7 +37,7 @@ class SBValuePersistTestCase(TestBase): lldbutil.run_break_set_by_source_regexp (self, "break here") - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/python_api/value_var_update/TestValueVarUpdate.py b/lldb/test/python_api/value_var_update/TestValueVarUpdate.py index 6b550c9407f..f3aa296ed6d 100644 --- a/lldb/test/python_api/value_var_update/TestValueVarUpdate.py +++ b/lldb/test/python_api/value_var_update/TestValueVarUpdate.py @@ -42,7 +42,7 @@ class HelloWorldTestCase(TestBase): breakpoint = target.BreakpointCreateBySourceRegex("break here", lldb.SBFileSpec("main.c")) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/settings/TestSettings.py b/lldb/test/settings/TestSettings.py index 17d34b73f6a..f6af0d201a9 100644 --- a/lldb/test/settings/TestSettings.py +++ b/lldb/test/settings/TestSettings.py @@ -227,7 +227,7 @@ class SettingsCommandTestCase(TestBase): self.addTearDownHook( lambda: self.runCmd("settings clear target.env-vars")) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # Read the output file produced by running the program. if lldb.remote_platform: @@ -263,7 +263,7 @@ class SettingsCommandTestCase(TestBase): os.environ.pop("MY_HOST_ENV_VAR2") self.addTearDownHook(unset_env_variables) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # Read the output file produced by running the program. if lldb.remote_platform: @@ -299,7 +299,7 @@ class SettingsCommandTestCase(TestBase): SETTING_MSG("target.output-path"), substrs = ['target.output-path (file) = "stdout.txt"']) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) if lldb.remote_platform: self.runCmd('platform get-file "stderr.txt" "stderr.txt"') diff --git a/lldb/test/source-manager/TestSourceManager.py b/lldb/test/source-manager/TestSourceManager.py index 9442585e0c6..5be75cb2601 100644 --- a/lldb/test/source-manager/TestSourceManager.py +++ b/lldb/test/source-manager/TestSourceManager.py @@ -115,7 +115,7 @@ class SourceManagerTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_FAILED) + self.runCmd("run", RUN_SUCCEEDED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/types/AbstractBase.py b/lldb/test/types/AbstractBase.py index 2d35601d610..0d1279398d8 100644 --- a/lldb/test/types/AbstractBase.py +++ b/lldb/test/types/AbstractBase.py @@ -140,7 +140,7 @@ class GenericTester(TestBase): 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.expect("process status", STOPPED_DUE_TO_BREAKPOINT, substrs = [" at basic_type.cpp:%d" % break_line, "stop reason = breakpoint"]) @@ -224,7 +224,7 @@ class GenericTester(TestBase): 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) self.expect("process status", STOPPED_DUE_TO_BREAKPOINT, substrs = [" at basic_type.cpp:%d" % break_line, "stop reason = breakpoint"]) diff --git a/lldb/test/types/TestRecursiveTypes.py b/lldb/test/types/TestRecursiveTypes.py index e5edc0fe1d4..4de9754076c 100644 --- a/lldb/test/types/TestRecursiveTypes.py +++ b/lldb/test/types/TestRecursiveTypes.py @@ -56,10 +56,10 @@ class RecursiveTypesTestCase(TestBase): 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_FAILED) + self.runCmd("run", RUN_SUCCEEDED) - self.expect("print tpi", RUN_FAILED) - self.expect("print *tpi", RUN_FAILED) + self.expect("print tpi", RUN_SUCCEEDED) + self.expect("print *tpi", RUN_SUCCEEDED) if __name__ == '__main__': import atexit |