summaryrefslogtreecommitdiffstats
path: root/lldb/test/lldbtest.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/lldbtest.py')
-rw-r--r--lldb/test/lldbtest.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py
index d63ac27f525..2713971cc07 100644
--- a/lldb/test/lldbtest.py
+++ b/lldb/test/lldbtest.py
@@ -126,6 +126,8 @@ RUN_SUCCEEDED = "Process is launched successfully"
RUN_COMPLETED = "Process exited successfully"
+BACKTRACE_DISPLAYED_CORRECTLY = "Backtrace displayed correctly"
+
BREAKPOINT_CREATED = "Breakpoint created successfully"
BREAKPOINT_PENDING_CREATED = "Pending breakpoint created successfully"
@@ -260,6 +262,12 @@ def system(*popenargs, **kwargs):
raise CalledProcessError(retcode, cmd)
return output
+def pointer_size():
+ """Return the pointer size of the host system."""
+ import ctypes
+ a_pointer = ctypes.c_void_p(0xffff)
+ return 8 * ctypes.sizeof(a_pointer)
+
class TestBase(unittest2.TestCase):
"""This LLDB abstract base class is meant to be subclassed."""
OpenPOWER on IntegriCloud