summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities
diff options
context:
space:
mode:
authorTamas Berghammer <tberghammer@google.com>2015-10-02 12:00:04 +0000
committerTamas Berghammer <tberghammer@google.com>2015-10-02 12:00:04 +0000
commitb285e9e0d2faa84e6404ddc6aa9b54e0c2981c39 (patch)
tree602b6ad3573a83d11c1f83417ed3901a33322ef9 /lldb/test/functionalities
parentf5ead561b3e41c588235a536db2587557b2fc1c4 (diff)
downloadbcm5719-llvm-b285e9e0d2faa84e6404ddc6aa9b54e0c2981c39.tar.gz
bcm5719-llvm-b285e9e0d2faa84e6404ddc6aa9b54e0c2981c39.zip
Change expected stop reason in TestInferiorAssert for Android API <= 16
llvm-svn: 249120
Diffstat (limited to 'lldb/test/functionalities')
-rw-r--r--lldb/test/functionalities/inferior-assert/TestInferiorAssert.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lldb/test/functionalities/inferior-assert/TestInferiorAssert.py b/lldb/test/functionalities/inferior-assert/TestInferiorAssert.py
index de74b7171d3..bea265fad12 100644
--- a/lldb/test/functionalities/inferior-assert/TestInferiorAssert.py
+++ b/lldb/test/functionalities/inferior-assert/TestInferiorAssert.py
@@ -55,7 +55,11 @@ class AssertingInferiorTestCase(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):
- stop_reason = 'stop reason = signal SIGABRT'
+ if matchAndroid(api_levels=range(1, 16+1))(self):
+ # On android until API-16 the abort() call ended in a sigsegv instead of in a sigabrt
+ stop_reason = 'stop reason = signal SIGSEGV'
+ else:
+ stop_reason = 'stop reason = signal SIGABRT'
# The stop reason of the thread should be an abort signal or exception.
self.expect("thread list", STOPPED_DUE_TO_ASSERT,
OpenPOWER on IntegriCloud