summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2010-09-07 18:32:57 +0000
committerJohnny Chen <johnny.chen@apple.com>2010-09-07 18:32:57 +0000
commit41cb55a916dd275f1f7c33d8cde31bbf90ae84d9 (patch)
tree0d9f508ba6d8ce2cd47443fc46bf54519b176814
parent1ca73da0e65b6ebf061491927baa1d380bfc3b99 (diff)
downloadbcm5719-llvm-41cb55a916dd275f1f7c33d8cde31bbf90ae84d9.tar.gz
bcm5719-llvm-41cb55a916dd275f1f7c33d8cde31bbf90ae84d9.zip
Converted TestUnsignedTypespy and TestStructTypes.py to Dsym/Dwarf combination.
llvm-svn: 113244
-rw-r--r--lldb/test/struct_types/TestStructTypes.py13
-rw-r--r--lldb/test/unsigned_types/TestUnsignedTypes.py13
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)
OpenPOWER on IntegriCloud