From bd3adfe5e3bcb6f8f16166d1fd8a3f3c4fd70307 Mon Sep 17 00:00:00 2001 From: Alex Langford Date: Wed, 15 May 2019 01:46:45 +0000 Subject: [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 --- .../lldbsuite/test/lang/objc/exceptions/TestObjCExceptions.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lldb/packages/Python/lldbsuite/test') 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()) -- cgit v1.2.3