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 def test_short_type(self): 12 """Test that short-type variables are displayed correctly.""" 13 self.build_and_run("short.cpp", ["short"]) 14 15 @skipUnlessDarwin 16 def test_short_type_from_block(self): 17 """Test that short-type variables are displayed correctly from a block.""" 18 self.build_and_run("short.cpp", ["short"], bc=True) 19 20 def test_unsigned_short_type(self): 21 """Test that 'unsigned_short'-type variables are displayed correctly.""" 22 self.build_and_run("unsigned_short.cpp", ["unsigned", "short"]) 23 24 @skipUnlessDarwin 25 def test_unsigned_short_type_from_block(self): 26 """Test that 'unsigned short'-type variables are displayed correctly from a block.""" 27 self.build_and_run("unsigned_short.cpp", ["unsigned", "short"], bc=True) 28