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