13 lines · python
1"""Test the SBError APIs."""2 3from lldbsuite.test.lldbtest import *4 5 6class TestSBError(TestBase):7 NO_DEBUG_INFO_TESTCASE = True8 9 def test_generic_error(self):10 error = lldb.SBError()11 error.SetErrorToGenericError()12 self.assertEqual(error.GetType(), lldb.eErrorTypeGeneric)13