Eliminate boilerplate of having each test manually assign to `mydir` by calling `compute_mydir` in lldbtest.py. Differential Revision: https://reviews.llvm.org/D128077
12 lines
303 B
Python
12 lines
303 B
Python
"""Test the SBError APIs."""
|
|
|
|
from lldbsuite.test.lldbtest import *
|
|
|
|
class TestSBError(TestBase):
|
|
NO_DEBUG_INFO_TESTCASE = True
|
|
|
|
def test_generic_error(self):
|
|
error = lldb.SBError()
|
|
error.SetErrorToGenericError()
|
|
self.assertEqual(error.GetType(), lldb.eErrorTypeGeneric)
|