blob: 28f81937409eeffb4379a71fc666e4cb6c9b6b10 [file] [log] [blame]
"""
Test that variables of integer basic types are displayed correctly.
"""
import AbstractBase
from lldbsuite.test.decorators import *
class LongTypesTestCase(AbstractBase.GenericTester):
mydir = AbstractBase.GenericTester.compute_mydir(__file__)
def test_long_type(self):
"""Test that long-type variables are displayed correctly."""
self.build_and_run('long.cpp', set(['long']))
@skipUnlessDarwin
def test_long_type_from_block(self):
"""Test that long-type variables are displayed correctly from a block."""
self.build_and_run('long.cpp', set(['long']), bc=True)
def test_unsigned_long_type(self):
"""Test that 'unsigned long'-type variables are displayed correctly."""
self.build_and_run('unsigned_long.cpp', set(['unsigned', 'long']))
@skipUnlessDarwin
def test_unsigned_long_type_from_block(self):
"""Test that 'unsigned_long'-type variables are displayed correctly from a block."""
self.build_and_run(
'unsigned_long.cpp', set(['unsigned', 'long']), bc=True)
def test_long_long_type(self):
"""Test that 'long long'-type variables are displayed correctly."""
self.build_and_run('long_long.cpp', set(['long long']))
@skipUnlessDarwin
def test_long_long_type_from_block(self):
"""Test that 'long_long'-type variables are displayed correctly from a block."""
self.build_and_run('long_long.cpp', set(['long long']), bc=True)
def test_unsigned_long_long_type(self):
"""Test that 'unsigned long long'-type variables are displayed correctly."""
self.build_and_run('unsigned_long_long.cpp',
set(['unsigned', 'long long']))
@skipUnlessDarwin
def test_unsigned_long_long_type_from_block(self):
"""Test that 'unsigned_long_long'-type variables are displayed correctly from a block."""
self.build_and_run(
'unsigned_long_long.cpp', set(['unsigned', 'long long']), bc=True)