summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/lang/objc/exceptions/TestObjCExceptions.py
diff options
context:
space:
mode:
authorAlex Langford <apl@fb.com>2019-05-15 01:46:45 +0000
committerAlex Langford <apl@fb.com>2019-05-15 01:46:45 +0000
commitbd3adfe5e3bcb6f8f16166d1fd8a3f3c4fd70307 (patch)
tree39a5ab6ac8c26c2da5e8dc5048cc80a9639f7e53 /lldb/packages/Python/lldbsuite/test/lang/objc/exceptions/TestObjCExceptions.py
parent658cad1287419dc90520a679cef9d7331f096fe1 (diff)
downloadbcm5719-llvm-bd3adfe5e3bcb6f8f16166d1fd8a3f3c4fd70307.tar.gz
bcm5719-llvm-bd3adfe5e3bcb6f8f16166d1fd8a3f3c4fd70307.zip
[Target] Generalize some behavior in Thread
Summary: I don't think there's a good reason for this behavior to be considered ObjC-specific. We can generalize this. Differential Revision: https://reviews.llvm.org/D61776 llvm-svn: 360741
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/objc/exceptions/TestObjCExceptions.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/lang/objc/exceptions/TestObjCExceptions.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lang/objc/exceptions/TestObjCExceptions.py b/lldb/packages/Python/lldbsuite/test/lang/objc/exceptions/TestObjCExceptions.py
index cc68e3677ec..1d4ee9aa579 100644
--- a/lldb/packages/Python/lldbsuite/test/lang/objc/exceptions/TestObjCExceptions.py
+++ b/lldb/packages/Python/lldbsuite/test/lang/objc/exceptions/TestObjCExceptions.py
@@ -196,11 +196,12 @@ class ObjCExceptionsTestCase(TestBase):
self.expect("thread list",
substrs=['stopped', 'stop reason = signal SIGABRT'])
- self.expect('thread exception', substrs=[])
+ self.expect('thread exception', substrs=['exception ='])
process = self.dbg.GetSelectedTarget().process
thread = process.GetSelectedThread()
- # C++ exceptions are not exposed in the API (yet).
- self.assertFalse(thread.GetCurrentException().IsValid())
+ self.assertTrue(thread.GetCurrentException().IsValid())
+
+ # C++ exception backtraces are not exposed in the API (yet).
self.assertFalse(thread.GetCurrentExceptionBacktrace().IsValid())
OpenPOWER on IntegriCloud