diff options
Diffstat (limited to 'lldb/test/lldbtest.py')
| -rw-r--r-- | lldb/test/lldbtest.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py index 3d1c2cc6dcc..5da2343d03e 100644 --- a/lldb/test/lldbtest.py +++ b/lldb/test/lldbtest.py @@ -133,14 +133,43 @@ STOPPED_DUE_TO_STEP_IN = "Process state is stopped due to step in" DATA_TYPES_DISPLAYED_CORRECTLY = "Data type(s) displayed correctly" +VALID_BREAKPOINT = "Got a valid breakpoint" + +VALID_PROCESS = "Got a valid process" + +VALID_TARGET = "Got a valid target" + VARIABLES_DISPLAYED_CORRECTLY = "Variable(s) displayed correctly" + # # And a generic "Command '%s' returns successfully" message generator. # def CMD_MSG(command): return "Command '%s' returns successfully" % (command) +# +# Returns the enum from the input string stopReason. +# +def Enum(stopReason): + if stopReason == "Invalid": + return 0 + elif stopReason == "None": + return 1 + elif stopReason == "Trace": + return 2 + elif stopReason == "Breakpoint": + return 3 + elif stopReason == "Watchpoint": + return 4 + elif stopReason == "Signal": + return 5 + elif stopReason == "Exception": + return 6 + elif stopReason == "PlanComplete": + return 7 + else: + raise Exception("Unknown stopReason string") class TestBase(unittest2.TestCase): """This LLDB abstract base class is meant to be subclassed.""" |

