llvm-project/lldb/test/API/python_api/sberror/TestSBError.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
349 B
Python
Raw Normal View History

"""Test the SBError APIs."""
from lldbsuite.test.lldbtest import *
class TestSBError(TestBase):
mydir = TestBase.compute_mydir(__file__)
NO_DEBUG_INFO_TESTCASE = True
def test_generic_error(self):
error = lldb.SBError()
error.SetErrorToGenericError()
self.assertEqual(error.GetType(), lldb.eErrorTypeGeneric)