diff options
author | Robert Flack <flackr@gmail.com> | 2015-04-01 13:26:16 +0000 |
---|---|---|
committer | Robert Flack <flackr@gmail.com> | 2015-04-01 13:26:16 +0000 |
commit | 8f4c4d535b5e38be49245ca28ab4b65b02b0c093 (patch) | |
tree | 3847fe673f6f082f0386cdb6be9dd969f1f9fb8d /lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py | |
parent | 3a610ebf1e7c44309880b2bd7ec9325d3f1db0bd (diff) | |
download | bcm5719-llvm-8f4c4d535b5e38be49245ca28ab4b65b02b0c093.tar.gz bcm5719-llvm-8f4c4d535b5e38be49245ca28ab4b65b02b0c093.zip |
Update sys.platform switched behavior in tests to use self.getPlatform (remote target platform)
Uses target platform when determining which platform specific behavior to use
or expect in tests. TestHelp.py was unchanged because this is asserting
behavior of the local lldb binary.
Test Plan:
Run tests on different remote os. Several previously failing tests now pass:
TestArrayTypes.py
TestInferiorChanged.py
TestInferiorCrashing.py
TestIvarProtocols.py
TestProcessIO.py
TestPublicAPIHeaders.py
TestRecursiveInferior.py
Differential Revision: http://reviews.llvm.org/D8747
llvm-svn: 233805
Diffstat (limited to 'lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py')
-rw-r--r-- | lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py b/lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py index e5b2ee8839e..054f64ee707 100644 --- a/lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py +++ b/lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py @@ -90,7 +90,7 @@ class CrashingRecursiveInferiorTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.c", line, num_expected_locations=1, loc_exact=True) def check_stop_reason(self): - if sys.platform.startswith("darwin"): + if self.getPlatform() == "darwin": stop_reason = 'stop reason = EXC_BAD_ACCESS' else: stop_reason = 'stop reason = invalid address' @@ -209,13 +209,13 @@ class CrashingRecursiveInferiorTestCase(TestBase): self.check_stop_reason() expected_state = 'exited' # Provide the exit code. - if sys.platform.startswith("darwin"): + if self.getPlatform() == "darwin": expected_state = 'stopped' # TODO: Determine why 'next' and 'continue' have no effect after a crash. self.expect("next", substrs = ['Process', expected_state]) - if not(sys.platform.startswith("darwin")): # if stopped, we will have a process around + if self.getPlatform() != "darwin": # if stopped, we will have a process around self.expect("thread list", error=True,substrs = ['Process must be launched']) def recursive_inferior_crashing_expr_step_expr(self): |