aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test/lldbtest.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lldbtest.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/lldbtest.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py
index 101921f..5c05876 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbtest.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py
@@ -2472,6 +2472,13 @@ FileCheck output:
self.fail(self._formatMessage(msg,
"'{}' is not success".format(error)))
+ """Assert that a command return object is successful"""
+ def assertCommandReturn(self, obj, msg=None):
+ if not obj.Succeeded():
+ error = obj.GetError()
+ self.fail(self._formatMessage(msg,
+ "'{}' is not success".format(error)))
+
"""Assert two states are equal"""
def assertState(self, first, second, msg=None):
if first != second: