1"""
2Test that variables of type short are displayed correctly.
3"""
4
5import AbstractBase
6
7from lldbsuite.test.decorators import *
8
9
10class ShortTypeTestCase(AbstractBase.GenericTester):
11
12    def test_short_type(self):
13        """Test that short-type variables are displayed correctly."""
14        self.build_and_run('short.cpp', ['short'])
15
16    @skipUnlessDarwin
17    def test_short_type_from_block(self):
18        """Test that short-type variables are displayed correctly from a block."""
19        self.build_and_run('short.cpp', ['short'], bc=True)
20
21    def test_unsigned_short_type(self):
22        """Test that 'unsigned_short'-type variables are displayed correctly."""
23        self.build_and_run('unsigned_short.cpp', ['unsigned', 'short'])
24
25    @skipUnlessDarwin
26    def test_unsigned_short_type_from_block(self):
27        """Test that 'unsigned short'-type variables are displayed correctly from a block."""
28        self.build_and_run(
29            'unsigned_short.cpp', ['unsigned', 'short'], bc=True)
30