summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2015-04-02 18:24:03 +0000
committerGreg Clayton <gclayton@apple.com>2015-04-02 18:24:03 +0000
commite0d0a7652d40fc890009d048ba3e7532068af1d0 (patch)
treee21c817f47dcecf8688c168b3412b16142355e17 /lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py
parenta5cad0d6a66378a3429cb94d557f192d4223180e (diff)
downloadbcm5719-llvm-e0d0a7652d40fc890009d048ba3e7532068af1d0.tar.gz
bcm5719-llvm-e0d0a7652d40fc890009d048ba3e7532068af1d0.zip
Many many test failures after some recent changes. The problem is lldbtest.getPlatform() returns the "OS" of the selected platform's triple. This is "macosx" for desktop macosx and "ios" for iOS. It used to be "darwin".
There was a lot of code that was checking "if self.getPlatform() == 'darwin'" which is not correct. I fixed this by adding a: lldbtest.platformIsDarwin() which returns true if the current platform's OS is "macosx", "ios" or "darwin". These three valid darwin are now returned by a static function: lldbtest.getDarwinOSTriples() Fixed up all places that has 'if self.getPlatform() == "darwin":' with "if self.platformIsDarwin()" and all instances of 'if self.getPlatform() != "darwin":' with "if not self.platformIsDarwin()". I also fixed some darwin decorator functions to do the right thing as well. llvm-svn: 233933
Diffstat (limited to 'lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py')
-rw-r--r--lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py6
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 3946ba822b2..b9b064bab5e 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 self.getPlatform() == "darwin":
+ if self.platformIsDarwin():
stop_reason = 'stop reason = EXC_BAD_ACCESS'
else:
stop_reason = 'stop reason = invalid address'
@@ -207,13 +207,13 @@ class CrashingRecursiveInferiorTestCase(TestBase):
self.check_stop_reason()
expected_state = 'exited' # Provide the exit code.
- if self.getPlatform() == "darwin":
+ if self.platformIsDarwin():
expected_state = 'stopped' # TODO: Determine why 'next' and 'continue' have no effect after a crash.
self.expect("next",
substrs = ['Process', expected_state])
- if self.getPlatform() != "darwin": # if stopped, we will have a process around
+ if not self.platformIsDarwin(): # 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):
OpenPOWER on IntegriCloud