xref: /llvm-project/lldb/test/API/types/TestCharType.py (revision 2238dcc39358353cac21df75c3c3286ab20b8f53)
1"""
2Test that variables of type char are displayed correctly.
3"""
4
5import AbstractBase
6
7from lldbsuite.test.decorators import *
8
9
10class CharTypeTestCase(AbstractBase.GenericTester):
11    def test_char_type(self):
12        """Test that char-type variables are displayed correctly."""
13        self.build_and_run("char.cpp", ["char"], qd=True)
14
15    @skipUnlessDarwin
16    def test_char_type_from_block(self):
17        """Test that char-type variables are displayed correctly from a block."""
18        self.build_and_run("char.cpp", ["char"], bc=True, qd=True)
19
20    def test_unsigned_char_type(self):
21        """Test that 'unsigned_char'-type variables are displayed correctly."""
22        self.build_and_run("unsigned_char.cpp", ["unsigned", "char"], qd=True)
23
24    @skipUnlessDarwin
25    def test_unsigned_char_type_from_block(self):
26        """Test that 'unsigned char'-type variables are displayed correctly from a block."""
27        self.build_and_run("unsigned_char.cpp", ["unsigned", "char"], bc=True, qd=True)
28