summaryrefslogtreecommitdiff
path: root/lldb/test/API/python_api/sberror/TestSBError.py
blob: 6ba6076e31db45384164e7f9cee3230e4cda2a5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
"""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)