diff options
Diffstat (limited to 'lldb/test')
174 files changed, 263 insertions, 253 deletions
diff --git a/lldb/test/api/check_public_api_headers/TestPublicAPIHeaders.py b/lldb/test/api/check_public_api_headers/TestPublicAPIHeaders.py index 63e21ffb4f4..3f7c3aaef31 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 fa18afb87c6..61cca067bd1 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 c36577a5413..6f1022e4584 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) 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 0814c408ccb..aa0e532778e 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.func_line, num_expected_locations=-1, loc_exact=True) diff --git a/lldb/test/expression_command/formatters/TestFormatters.py b/lldb/test/expression_command/formatters/TestFormatters.py index a6ba370a8d1..0ca70346b2e 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) 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 9c8c3fe1e70..41bf03cea62 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) 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 9c291219529..eb9e75dd110 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) 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 51b7b06ce74..972a2f6ae59 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) 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 8e7af009c6a..91ac83659ce 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) 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 dbb9daa8d04..e68cf8559e3 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) 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 823c8e12113..09ddd106bbc 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) 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 cdc3e3c0733..506f0bd9139 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) 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 568b14ad167..cd0984dd696 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 a1f13dc41e1..d20aa3059d4 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) @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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 1fdb787898a..daa5cd4587d 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 9f3a18d6af0..daff33a75be 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 632b9819070..c56856263e5 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 b1116595d4b..cffbff46af3 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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_SUCCEEDED) + self.runCmd ("run", RUN_FAILED) # 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 ca95f36e838..b7d9b704606 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 a60a917e8af..6587746ae9a 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 7655af396ab..1b961c3343e 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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_SUCCEEDED) + self.runCmd("process continue -i 1", RUN_FAILED) # 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 5cc912a24df..b86ee77df2a 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # We should not stopped on any breakpoint at all. self.expect("process status", "No stopping on any disabled breakpoint", @@ -71,7 +71,7 @@ class BreakpointLocationsTestCase(TestBase): startstr = "1 breakpoints disabled.") # Run the program againt. We should stop on the two breakpoint locations. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # Stopped once. self.expect("thread backtrace", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/breakpoint/breakpoint_options/TestBreakpointOptions.py b/lldb/test/functionalities/breakpoint/breakpoint_options/TestBreakpointOptions.py index b8704bda7d8..b46cea0a662 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 de532c85724..a357031cb4d 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 ec5e2f3e696..afe90fd8d4e 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 1031bfd766c..7014c418927 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) 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 702563a20ae..992bde0e178 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 76de9a7245e..cf53eddb827 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 8ffbb73a6e8..a6953cee3dc 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 64979bb5179..7c8d9ced6ce 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 98891e539c2..15f4932b2f3 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 64e68e5e320..790c488ec53 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 f0aadb59ba1..e7604f26c4a 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -262,7 +262,7 @@ 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -327,7 +327,7 @@ 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -508,7 +508,7 @@ 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -551,7 +551,7 @@ 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -607,7 +607,7 @@ 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 fad6d4a05b1..e13728a36f8 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -210,7 +210,7 @@ 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 a23fa2c9adc..c12cc0efed1 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 6a925dbb2c0..ad3b4b3caef 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 645d316e5a5..dcf56261f5f 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 8d31bdf78ab..549d2002595 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 0fbcc3a0d5d..620b859d051 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 ee743b96ee2..3559c9a3ba7 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 8881ea05566..5fe9843d822 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 2c3b72a6b7d..628a2557bb8 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 f51f0509e41..a795bc17f1e 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 d855399ad10..cac8cefd289 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 fd3ecfe0461..86ecfaa1a60 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 921f8374af6..d4f273a6f7b 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 e5abcd649a6..3e0426ae0a7 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 b7c96189c0d..a42e1836228 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 bac3057309f..ac5663a8b5a 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 6b06581112a..e0bdc67be09 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -162,7 +162,7 @@ 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_SUCCEEDED) + self.runCmd("c", RUN_FAILED) # 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 d2ffa0f4b36..a4cb0aac68e 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 9188efb8d55..abd8446ac27 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 7fc8a7c817c..c700c310cc6 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 9d4ea773eb7..64de4a4b506 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 48217103aa8..dfee780f30c 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 94a9934c87e..52d69fa33a0 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 cc670569d72..c4fd55f008b 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 7580a5f86b7..3483f138689 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 ad086e6e1a9..881e2e61d89 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 ac8757f6cfe..f6a31907bf1 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 b4f6294c11a..ed1db515b03 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 67aa08de6b8..9b36e716fa8 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 40bd599617f..21979113823 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 f0584c89ed2..a0ade4b8cb0 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 092737b3ac2..c9d6be89ba9 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 ae1b83bd39b..2ce6ba5fd33 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 c96f38b0803..307fcd97533 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 83a36ecda55..399a535ef61 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 5a2acda18a3..5b4e10675ae 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 b3cbeb43e10..e4a55c8f9a2 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 9470fbf2393..c8facb5d2c5 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 5f31904279c..fffe5797692 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 326edf1a5a9..5e28a3f9d8f 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 237099d7bdd..dd61431b086 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 7650c23bb51..0b138f71027 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 66f597d3493..ae8f088ea50 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 3bd2262f601..14cc63fd042 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 d9f92b3158f..eaae4386701 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint (breakpoint #1). self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/inferior-assert/TestInferiorAssert.py b/lldb/test/functionalities/inferior-assert/TestInferiorAssert.py index a862de40b3b..8039373b98d 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) stop_reason = self.check_stop_reason() # And it should report a backtrace that includes the assert site. @@ -145,7 +145,7 @@ class AssertingInferiorTestCase(TestBase): exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.check_stop_reason() # lldb should be able to read from registers from the inferior after asserting. @@ -173,7 +173,7 @@ class AssertingInferiorTestCase(TestBase): for frame in thread: self.assertTrue(frame.IsValid(), "current frame is valid") - self.runCmd("frame select " + str(frame.GetFrameID()), RUN_SUCCEEDED) + self.runCmd("frame select " + str(frame.GetFrameID()), RUN_FAILED) # Don't expect the function name to be in the disassembly as the assert # function might be a no-return function where the PC is past the end @@ -196,7 +196,7 @@ class AssertingInferiorTestCase(TestBase): if 'main' == frame.GetFunctionName(): frame_id = frame.GetFrameID() - self.runCmd("frame select " + str(frame_id), RUN_SUCCEEDED) + self.runCmd("frame select " + str(frame_id), RUN_FAILED) self.expect("p argc", substrs = ['(int)', ' = 1']) self.expect("p hello_world", substrs = ['Hello']) self.expect("p argv[0]", substrs = ['a.out']) diff --git a/lldb/test/functionalities/inferior-changed/TestInferiorChanged.py b/lldb/test/functionalities/inferior-changed/TestInferiorChanged.py index dbb916fd880..b4d1b1b4418 100644 --- a/lldb/test/functionalities/inferior-changed/TestInferiorChanged.py +++ b/lldb/test/functionalities/inferior-changed/TestInferiorChanged.py @@ -47,7 +47,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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) if self.platformIsDarwin(): stop_reason = 'stop reason = EXC_BAD_ACCESS' @@ -70,7 +70,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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.runCmd("process status") if self.platformIsDarwin(): @@ -84,7 +84,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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 06b411a5706..dc30ea94e8a 100644 --- a/lldb/test/functionalities/inferior-crashing/TestInferiorCrashing.py +++ b/lldb/test/functionalities/inferior-crashing/TestInferiorCrashing.py @@ -115,7 +115,7 @@ class CrashingInferiorTestCase(TestBase): exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) stop_reason = self.check_stop_reason() # And it should report the correct line number. @@ -151,7 +151,7 @@ class CrashingInferiorTestCase(TestBase): exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.check_stop_reason() # lldb should be able to read from registers from the inferior after crashing. @@ -162,7 +162,7 @@ class CrashingInferiorTestCase(TestBase): exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.check_stop_reason() # The lldb expression interpreter should be able to read from addresses of the inferior after a crash. @@ -178,7 +178,7 @@ class CrashingInferiorTestCase(TestBase): self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) self.set_breakpoint(self.line) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, substrs = ['main.c:%d' % self.line, @@ -206,7 +206,7 @@ class CrashingInferiorTestCase(TestBase): exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.check_stop_reason() self.runCmd("next") @@ -217,7 +217,7 @@ class CrashingInferiorTestCase(TestBase): exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.check_stop_reason() # The lldb expression interpreter should be able to read from addresses of the inferior after a crash. diff --git a/lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py b/lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py index 7a9648d98a3..c31816fd0d0 100644 --- a/lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py +++ b/lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py @@ -111,7 +111,7 @@ class CrashingRecursiveInferiorTestCase(TestBase): exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) stop_reason = self.check_stop_reason() # And it should report a backtrace that includes main and the crash site. @@ -151,7 +151,7 @@ class CrashingRecursiveInferiorTestCase(TestBase): exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.check_stop_reason() # lldb should be able to read from registers from the inferior after crashing. @@ -162,7 +162,7 @@ class CrashingRecursiveInferiorTestCase(TestBase): exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.check_stop_reason() # The lldb expression interpreter should be able to read from addresses of the inferior after a crash. @@ -175,7 +175,7 @@ class CrashingRecursiveInferiorTestCase(TestBase): self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) self.set_breakpoint(self.line) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, substrs = ['main.c:%d' % self.line, @@ -201,7 +201,7 @@ class CrashingRecursiveInferiorTestCase(TestBase): exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.check_stop_reason() expected_state = 'exited' # Provide the exit code. @@ -221,7 +221,7 @@ class CrashingRecursiveInferiorTestCase(TestBase): exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.check_stop_reason() # The lldb expression interpreter should be able to read from addresses of the inferior after a crash. diff --git a/lldb/test/functionalities/load_unload/TestLoadUnload.py b/lldb/test/functionalities/load_unload/TestLoadUnload.py index 36719dbd215..f3107dd0ba7 100644 --- a/lldb/test/functionalities/load_unload/TestLoadUnload.py +++ b/lldb/test/functionalities/load_unload/TestLoadUnload.py @@ -157,7 +157,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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # Make sure that a_function does not exist at this point. self.expect("image lookup -n a_function", "a_function should not exist yet", @@ -208,7 +208,7 @@ 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint and at a_function. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -249,7 +249,7 @@ 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint and at a_function. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/longjmp/TestLongjmp.py b/lldb/test/functionalities/longjmp/TestLongjmp.py index 7898636e9df..2fdb66daffa 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -61,21 +61,21 @@ class LongjmpTestCase(TestBase): def step_out(self): self.start_test("do_jump") - self.runCmd("thread step-out", RUN_SUCCEEDED) + self.runCmd("thread step-out", RUN_FAILED) self.check_status() def step_over(self): self.start_test("do_jump") - self.runCmd("thread step-over", RUN_SUCCEEDED) - self.runCmd("thread step-over", RUN_SUCCEEDED) + self.runCmd("thread step-over", RUN_FAILED) + self.runCmd("thread step-over", RUN_FAILED) self.check_status() def step_back_out(self): self.start_test("main") - self.runCmd("thread step-over", RUN_SUCCEEDED) - self.runCmd("thread step-in", RUN_SUCCEEDED) - self.runCmd("thread step-out", RUN_SUCCEEDED) + self.runCmd("thread step-over", RUN_FAILED) + self.runCmd("thread step-in", RUN_FAILED) + self.runCmd("thread step-out", RUN_FAILED) self.check_status() if __name__ == '__main__': diff --git a/lldb/test/functionalities/memory/read/TestMemoryRead.py b/lldb/test/functionalities/memory/read/TestMemoryRead.py index 427a8d4f504..b3f772a7b1f 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 d2a127e999d..ae31a333b28 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 42724d58894..71544d0a89c 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 b78a2549edc..81a68f50bfc 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -102,7 +102,7 @@ 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_SUCCEEDED) + self.runCmd("log enable " + self.platform + " " + str(category) + " registers -v -f " + self.log_file, RUN_FAILED) if not self.has_teardown: self.has_teardown = True self.addTearDownHook(self.remove_log) diff --git a/lldb/test/functionalities/set-data/TestSetData.py b/lldb/test/functionalities/set-data/TestSetData.py index 07fdc7e0d68..05397548579 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) 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 8cf327ae32b..edb18abe9f7 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.runCmd("target create " + exe_b, CURRENT_EXECUTABLE_SET) lldbutil.run_break_set_by_file_and_line (self, 'b.c', self.line_b, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.runCmd("target create " + exe_c, CURRENT_EXECUTABLE_SET) lldbutil.run_break_set_by_file_and_line (self, 'c.c', self.line_c, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.runCmd("target list") diff --git a/lldb/test/functionalities/thread/TestNumThreads.py b/lldb/test/functionalities/thread/TestNumThreads.py index a7d015048a5..c308ec003bc 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 c230c1aad7c..10000914dc8 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, locations = 1" % self.breakpoint]) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py b/lldb/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py index 6822cf0fb65..287a8422809 100644 --- a/lldb/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py +++ b/lldb/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py @@ -425,7 +425,7 @@ class ConcurrentEventsTestCase(TestBase): self.expect("breakpoint list -f", "Breakpoint locations shown correctly", substrs = expected_bps) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # Check we are at line self.setup_breakpoint self.expect("thread backtrace", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/thread/create_during_step/TestCreateDuringStep.py b/lldb/test/functionalities/thread/create_during_step/TestCreateDuringStep.py index 1a50c0739ef..742a9c1ddc9 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 539e7a0dbd2..9f2265b289d 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 1209c3788d9..135de10bca6 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 d1c279fd7d2..605d692da33 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint 1. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT + " 1", diff --git a/lldb/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py b/lldb/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py index b0358e6b457..a54aa7993bd 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. # The breakpoint may be hit in either thread 2 or thread 3. diff --git a/lldb/test/functionalities/thread/state/TestThreadStates.py b/lldb/test/functionalities/thread/state/TestThreadStates.py index 87be542e108..a08028f6c97 100644 --- a/lldb/test/functionalities/thread/state/TestThreadStates.py +++ b/lldb/test/functionalities/thread/state/TestThreadStates.py @@ -105,7 +105,7 @@ class ThreadStateTestCase(TestBase): substrs = ["1: file = 'main.c', line = %d, locations = 1" % self.break_1]) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -146,7 +146,7 @@ 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -195,7 +195,7 @@ class ThreadStateTestCase(TestBase): substrs = ["1: file = 'main.c', line = %d, locations = 1" % self.break_1]) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -239,7 +239,7 @@ class ThreadStateTestCase(TestBase): substrs = ["1: file = 'main.c', line = %d, locations = 1" % self.break_1]) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -294,7 +294,7 @@ class ThreadStateTestCase(TestBase): "2: file = 'main.c', line = %d, locations = 1" % self.break_2]) # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/functionalities/thread/step_out/TestThreadStepOut.py b/lldb/test/functionalities/thread/step_out/TestThreadStepOut.py index 84d17c81cf2..ef6a718ebe2 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 7b8ed18512b..b21418f9fd3 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint 1. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT + " 1", diff --git a/lldb/test/functionalities/type_completion/TestTypeCompletion.py b/lldb/test/functionalities/type_completion/TestTypeCompletion.py index 361aa4a7867..7f80eb026d3 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 fa1a290c989..75a88bf7850 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 b70b4f1a5e1..1f58831128f 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 16a3d9d212f..b157f45316e 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 a6d7a8451b1..e0860d370c1 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. @@ -103,7 +103,7 @@ 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 5f9a7f1e136..0bb88339d71 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 74c5d11d73d..7afb4dab117 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. @@ -165,7 +165,7 @@ 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. @@ -205,7 +205,7 @@ 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. @@ -249,7 +249,7 @@ class WatchpointCommandsTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.m") # Run the program. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. @@ -304,7 +304,7 @@ 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. @@ -344,7 +344,7 @@ 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. @@ -388,7 +388,7 @@ 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. @@ -443,7 +443,7 @@ 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 025d1f40bcc..c730fa1a071 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # We should be stopped again due to the breakpoint. # The stop reason of the thread should be breakpoint. @@ -113,7 +113,7 @@ 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 0c6066d80c8..d61b1a395c9 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 21e1d992d26..cda9bcefac0 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 fa32db6c9df..fbc162744f3 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 e445b46afc6..86039b0dcee 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 e5fdf291b16..994d24a6943 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 15d33057abd..495660bb541 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 1a247e90451..7fac63e0bb3 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_SUCCEEDED) + self.runCmd("process launch", RUN_FAILED) else: - self.runCmd("process continue", RUN_SUCCEEDED) + self.runCmd("process continue", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/lang/c/const_variables/TestConstVariables.py b/lldb/test/lang/c/const_variables/TestConstVariables.py index a3a031e5087..456b03e91ae 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 7ca36e1c236..6844f2312b2 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 6fb0eb9645a..bc1388d8006 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 9863e05e876..4d69f8ce45d 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 9bec4c5f32c..3109050e5a0 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 2c45793a9c7..c35497c3b7c 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 f914cfae8c3..7f9f12b9ee6 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 13c8ce88ddc..69ede5f9397 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 ee6348160f9..fd2b1a06b06 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_SUCCEEDED) + self.runCmd("process launch", RUN_FAILED) 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 f0165e77c62..87497dd4fa4 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.runCmd("process status", "Get process status") @@ -65,7 +65,7 @@ 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_SUCCEEDED) + self.runCmd("continue", RUN_FAILED) # 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 fc1c57416e9..fbe60f4e979 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_SUCCEEDED) + self.runCmd("process launch", RUN_FAILED) 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 cb0725a952c..1adf6f1d408 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_SUCCEEDED) + self.runCmd("process launch", RUN_FAILED) # 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 65e870eae74..c5aa99089d8 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 f0cbf1f8c97..3c571c9fea6 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 2e401147591..0b7192c0a96 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 014a441625d..ccdf30daf45 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 1241126e23a..e98a93b7ff3 100644 --- a/lldb/test/lang/cpp/namespace/TestNamespace.py +++ b/lldb/test/lang/cpp/namespace/TestNamespace.py @@ -41,11 +41,11 @@ class NamespaceTestCase(TestBase): def namespace_variable_commands(self): """Test that anonymous and named namespace variables display correctly.""" - self.runCmd("file a.out", CURRENT_EXECUTABLE_SET) + self.runCmd("run a.out", RUN_FAILED) lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line_break, num_expected_locations=1, loc_exact=True) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, diff --git a/lldb/test/lang/cpp/overloaded-functions/TestOverloadedFunctions.py b/lldb/test/lang/cpp/overloaded-functions/TestOverloadedFunctions.py index 0ae186ff286..7cd8dd124cd 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_SUCCEEDED) + self.runCmd("process launch", RUN_FAILED) # 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 435e19157ac..f3bd39b4a53 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_SUCCEEDED) + self.runCmd("process launch", RUN_FAILED) # Note that clang as of r187480 doesn't emit DW_TAG_const_type, unlike gcc 4.8.1 # With gcc 4.8.1, lldb reports the type as (int &&const) diff --git a/lldb/test/lang/cpp/static_members/TestCPPStaticMembers.py b/lldb/test/lang/cpp/static_members/TestCPPStaticMembers.py index 83516b72483..8dae233b1fa 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_SUCCEEDED) + self.runCmd("process launch", RUN_FAILED) 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 8fa358c7b51..cca5b8956fc 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_SUCCEEDED) + self.runCmd("process launch", RUN_FAILED) # 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 4a1b2e0eb2f..0df8a591eb3 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 eca9182cbc3..7b25cdda613 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 1e5731e05c7..32d60779f1a 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_SUCCEEDED) + self.runCmd("process launch", RUN_FAILED) 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 799e2fdf23b..185280eeb28 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 5959d863500..1109c836a41 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 ca644ba5455..1f9ea6a901f 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.expect("process status", STOPPED_DUE_TO_BREAKPOINT, substrs = [" at %s:%d" % (self.main_source, self.line), "stop reason = breakpoint"]) diff --git a/lldb/test/lang/objc/foundation/TestFoundationDisassembly.py b/lldb/test/lang/objc/foundation/TestFoundationDisassembly.py index 4fa78d86cbd..243a6801c58 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 a9ae40865c4..d9cdb71da56 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 9f17730ce3f..de313ab95c0 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.expect("po [NSError errorWithDomain:@\"Hello\" code:35 userInfo:nil]", substrs = ["Error Domain=Hello", "Code=35", "be completed."]) @@ -225,7 +225,7 @@ 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) 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 20e38a62479..d7ec4af15a9 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 a7d52b0a298..b67cdf7dea0 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 b8f4493823c..c5a2c58630a 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 b552fd566a9..be6f40b1793 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 a9c7ce65067..2647ac1cbcd 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 0892b91db0f..b8596100c06 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 eeb2bc8bf02..4dd2b0c7829 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) 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 fd3ae8455e8..4cf7ff05d8d 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) 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 a5d342ff1f6..cef3adedba9 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 507e29e6773..86da6df0678 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.expect("thread backtrace", STOPPED_DUE_TO_BREAKPOINT, substrs = ["stop reason = breakpoint"], patterns = ["frame.*0:.*%s %s" % (self.myclass, self.mymethod)]) diff --git a/lldb/test/lang/objc/radar-9691614/TestObjCMethodReturningBOOL.py b/lldb/test/lang/objc/radar-9691614/TestObjCMethodReturningBOOL.py index ff860e1ef3e..beeedc4a10e 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.expect("process status", STOPPED_DUE_TO_BREAKPOINT, substrs = [" at %s:%d" % (self.main_source, self.line), "stop reason = breakpoint"]) diff --git a/lldb/test/lang/objc/rdar-10967107/TestRdar10967107.py b/lldb/test/lang/objc/rdar-10967107/TestRdar10967107.py index c8f4c1fd2ca..906470ca8a0 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # check that each type is correctly bound to its list of children self.expect("frame variable cf_greg_date --raw", substrs = ['year','month','day','hour','minute','second']) self.expect("frame variable cf_range --raw", substrs = ['location','length']) diff --git a/lldb/test/lang/objc/rdar-11355592/TestRdar11355592.py b/lldb/test/lang/objc/rdar-11355592/TestRdar11355592.py index 0cbb7388711..d9258b97816 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # check that we correctly see the const char*, even with dynamic types on self.expect("frame variable my_string", substrs = ['const char *']) self.expect("frame variable my_string --dynamic-type run-target", substrs = ['const char *']) diff --git a/lldb/test/lang/objc/rdar-12408181/TestRdar12408181.py b/lldb/test/lang/objc/rdar-12408181/TestRdar12408181.py index ddc94efca53..0e8c60b288b 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) window = self.frame().FindVariable("window") window_dynamic = window.GetDynamicValue(lldb.eDynamicCanRunTarget) self.assertTrue(window.GetNumChildren() > 1, "NSWindow (static) only has 1 child!") diff --git a/lldb/test/lang/objc/real-definition/TestRealDefinition.py b/lldb/test/lang/objc/real-definition/TestRealDefinition.py index 41f0b27db1d..cde2b9349c8 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -76,7 +76,7 @@ class TestRealDefinition(TestBase): self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE, substrs = [' resolved, hit count = 1']) - self.runCmd("continue", RUN_SUCCEEDED) + self.runCmd("continue", RUN_FAILED) # Run at stop at main self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE, @@ -93,7 +93,7 @@ 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -104,7 +104,7 @@ class TestRealDefinition(TestBase): self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE, substrs = [' resolved, hit count = 1']) - self.runCmd("continue", RUN_SUCCEEDED) + self.runCmd("continue", RUN_FAILED) # Run at stop at main self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE, diff --git a/lldb/test/lang/objc/self/TestObjCSelf.py b/lldb/test/lang/objc/self/TestObjCSelf.py index 1ed2283292e..700da39c605 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_SUCCEEDED) + self.runCmd("process launch", RUN_FAILED) 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 a81683c9063..7bdeabbbc3e 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -54,7 +54,7 @@ class BuiltinTrapTestCase(TestBase): self.expect('bt', substrs = ['bar', 'main']) # go up one frame - self.runCmd("up", RUN_SUCCEEDED) + self.runCmd("up", RUN_FAILED) # evaluate a local self.expect('p foo', substrs = ['= 5']) diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py index a64bb59fb32..919d4d6a67e 100644 --- a/lldb/test/lldbtest.py +++ b/lldb/test/lldbtest.py @@ -87,7 +87,7 @@ PROCESS_EXITED = "Process exited successfully" PROCESS_STOPPED = "Process status should be stopped" -RUN_SUCCEEDED = "Process is launched successfully" +RUN_FAILED = "Process could not be launched successfully" RUN_COMPLETED = "Process exited successfully" @@ -160,9 +160,18 @@ VARIABLES_DISPLAYED_CORRECTLY = "Variable(s) displayed correctly" WATCHPOINT_CREATED = "Watchpoint created successfully" -def CMD_MSG(str): - '''A generic "Command '%s' returns successfully" message generator.''' - return "Command '%s' returns successfully" % str +def cmd_failure_message(cmd, res, msg=None): + """ Return a command failure message. + + Args: + cmd - The command which failed. + res - The command result of type SBCommandReturnObject. + msg - Additional failure message if any. + """ + err_msg = res.GetError() + full_msg = (err_msg or "") + (msg or "") + full_msg = (">>> %s" % full_msg.replace("\n", "\n>>> ")) if full_msg else "" + return "Command '%s' failed.\n%s" % (cmd, full_msg) def COMPLETION_MSG(str_before, str_after): '''A generic message generator for the completion mechanism.''' @@ -2272,8 +2281,9 @@ class TestBase(Base): print >> sbuf, "Command '" + cmd + "' failed!" if check: - self.assertTrue(self.res.Succeeded(), - msg if msg else CMD_MSG(cmd)) + self.assertTrue( + self.res.Succeeded(), + cmd_failure_message(cmd, self.res, msg)) def match (self, str, patterns, msg=None, trace=False, error=False, matching=True, exe=True): """run command in str, and match the result against regexp in patterns returning the match object for the first matching pattern diff --git a/lldb/test/macosx/universal/TestUniversal.py b/lldb/test/macosx/universal/TestUniversal.py index 342c1a9f833..f72b57476c1 100644 --- a/lldb/test/macosx/universal/TestUniversal.py +++ b/lldb/test/macosx/universal/TestUniversal.py @@ -56,7 +56,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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # Check whether we have a 64-bit process launched. target = self.dbg.GetSelectedTarget() @@ -81,7 +81,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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 c8604735f62..1714691cea4 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, @@ -304,7 +304,7 @@ 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 49057851c96..1790a45a0cb 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 4429da5cdd5..db4c63df6bc 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 407d417133c..4d976ce32c1 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 f3aa296ed6d..6b550c9407f 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 0f3c8b4e848..ff082152a1d 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) 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 5be75cb2601..9442585e0c6 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # 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 9b149e9534f..d1ad0464883 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.expect("process status", STOPPED_DUE_TO_BREAKPOINT, substrs = [" at basic_type.cpp:%d" % break_line, "stop reason = breakpoint"]) @@ -224,7 +224,7 @@ 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) self.expect("process status", STOPPED_DUE_TO_BREAKPOINT, substrs = [" at basic_type.cpp:%d" % break_line, "stop reason = breakpoint"]) diff --git a/lldb/test/types/TestRecursiveTypes.py b/lldb/test/types/TestRecursiveTypes.py index 4de9754076c..e5edc0fe1d4 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_SUCCEEDED) + self.runCmd("run", RUN_FAILED) - self.expect("print tpi", RUN_SUCCEEDED) - self.expect("print *tpi", RUN_SUCCEEDED) + self.expect("print tpi", RUN_FAILED) + self.expect("print *tpi", RUN_FAILED) if __name__ == '__main__': import atexit |