From 41cb55a916dd275f1f7c33d8cde31bbf90ae84d9 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Tue, 7 Sep 2010 18:32:57 +0000 Subject: Converted TestUnsignedTypespy and TestStructTypes.py to Dsym/Dwarf combination. llvm-svn: 113244 --- lldb/test/struct_types/TestStructTypes.py | 13 ++++++++++++- lldb/test/unsigned_types/TestUnsignedTypes.py | 13 ++++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/lldb/test/struct_types/TestStructTypes.py b/lldb/test/struct_types/TestStructTypes.py index e7fc6726d5c..8c94b1e7cd7 100644 --- a/lldb/test/struct_types/TestStructTypes.py +++ b/lldb/test/struct_types/TestStructTypes.py @@ -13,7 +13,18 @@ class StructTypesTestCase(TestBase): mydir = "struct_types" - def test_struct_types(self): + @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + def test_with_dsym(self): + """Test that break on a struct declaration has no effect.""" + self.buildDsym() + self.struct_types() + + def test_with_dwarf(self): + """Test that break on a struct declaration has no effect.""" + self.buildDwarf() + self.struct_types() + + def struct_types(self): """Test that break on a struct declaration has no effect.""" exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) diff --git a/lldb/test/unsigned_types/TestUnsignedTypes.py b/lldb/test/unsigned_types/TestUnsignedTypes.py index d22e7abbdc5..c60a525b000 100644 --- a/lldb/test/unsigned_types/TestUnsignedTypes.py +++ b/lldb/test/unsigned_types/TestUnsignedTypes.py @@ -12,7 +12,18 @@ class UnsignedTypesTestCase(TestBase): mydir = "unsigned_types" - def test_unsigned_types(self): + @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + def test_with_dsym(self): + """Test that variables with unsigned types display correctly.""" + self.buildDsym() + self.unsigned_types() + + def test_with_dwarf(self): + """Test that variables with unsigned types display correctly.""" + self.buildDwarf() + self.unsigned_types() + + def unsigned_types(self): """Test that variables with unsigned types display correctly.""" exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) -- cgit v1.2.3