summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/thread/exit_during_step/TestExitDuringStep.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/thread/exit_during_step/TestExitDuringStep.py b/lldb/packages/Python/lldbsuite/test/functionalities/thread/exit_during_step/TestExitDuringStep.py
index f1f365fee11..67d1c96fd34 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/thread/exit_during_step/TestExitDuringStep.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/thread/exit_during_step/TestExitDuringStep.py
@@ -98,7 +98,8 @@ class ExitDuringStepTestCase(TestBase):
stepping_thread = None
for thread in process:
expected_bp_desc = "breakpoint %s." % self.bp_num
- if expected_bp_desc in thread.GetStopDescription(100):
+ stop_desc = thread.GetStopDescription(100)
+ if stop_desc and (expected_bp_desc in stop_desc):
stepping_thread = thread
break
self.assertTrue(stepping_thread != None, "unable to find thread stopped at %s" % expected_bp_desc)
OpenPOWER on IntegriCloud