summaryrefslogtreecommitdiffstats
path: root/lldb/test/lang/cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2014-10-16 23:16:13 +0000
committerEnrico Granata <egranata@apple.com>2014-10-16 23:16:13 +0000
commitd15ad22048edb2a46d9be22a47ca9e6644e03408 (patch)
treeec42329b4e8ace44c605c58a0cac0a9b30f58b42 /lldb/test/lang/cpp
parent816cb3eed4ab84101b9815aa172db96d4d109bf3 (diff)
downloadbcm5719-llvm-d15ad22048edb2a46d9be22a47ca9e6644e03408.tar.gz
bcm5719-llvm-d15ad22048edb2a46d9be22a47ca9e6644e03408.zip
Split this test case to handle each literal kind uniquely
llvm-svn: 219985
Diffstat (limited to 'lldb/test/lang/cpp')
-rw-r--r--lldb/test/lang/cpp/rdar12991846/TestRdar12991846.py49
1 files changed, 38 insertions, 11 deletions
diff --git a/lldb/test/lang/cpp/rdar12991846/TestRdar12991846.py b/lldb/test/lang/cpp/rdar12991846/TestRdar12991846.py
index 9cdd9ab4ad8..1eb6200d02c 100644
--- a/lldb/test/lang/cpp/rdar12991846/TestRdar12991846.py
+++ b/lldb/test/lang/cpp/rdar12991846/TestRdar12991846.py
@@ -29,17 +29,47 @@ class Rdar12991846TestCase(TestBase):
@unittest2.expectedFailure
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
@dsym_test
- def test_with_dsym(self):
+ def test_expr1_with_dsym(self):
"""Test that the expression parser returns proper Unicode strings."""
self.buildDsym()
- self.rdar12991846()
+ self.rdar12991846(expr=1)
@unittest2.expectedFailure
@dwarf_test
- def test_with_dwarf(self):
+ def test_expr1_with_dwarf(self):
"""Test that the expression parser returns proper Unicode strings."""
self.buildDwarf()
- self.rdar12991846()
+ self.rdar12991846(expr=1)
+
+ @unittest2.expectedFailure
+ @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
+ @dsym_test
+ def test_expr2_with_dsym(self):
+ """Test that the expression parser returns proper Unicode strings."""
+ self.buildDsym()
+ self.rdar12991846(expr=2)
+
+ @unittest2.expectedFailure
+ @dwarf_test
+ def test_expr2_with_dwarf(self):
+ """Test that the expression parser returns proper Unicode strings."""
+ self.buildDwarf()
+ self.rdar12991846(expr=2)
+
+ @unittest2.expectedFailure
+ @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
+ @dsym_test
+ def test_expr3_with_dsym(self):
+ """Test that the expression parser returns proper Unicode strings."""
+ self.buildDsym()
+ self.rdar12991846(expr=3)
+
+ @unittest2.expectedFailure
+ @dwarf_test
+ def test_expr3_with_dwarf(self):
+ """Test that the expression parser returns proper Unicode strings."""
+ self.buildDwarf()
+ self.rdar12991846(expr=3)
def setUp(self):
# Call super's setUp().
@@ -48,7 +78,7 @@ class Rdar12991846TestCase(TestBase):
self.source = 'main.cpp'
self.line = line_number(self.source, '// Set break point at this line.')
- def rdar12991846(self):
+ def rdar12991846(self, expr=None):
"""Test that the expression parser returns proper Unicode strings."""
if self.getArchitecture() in ['i386']:
self.skipTest("Skipping because this test is known to crash on i386")
@@ -68,14 +98,11 @@ class Rdar12991846TestCase(TestBase):
if not process:
self.fail("SBTarget.Launch() failed")
- self.expect('expression L"hello"',
- substrs = ['hello'])
+ if expr == 1: self.expect('expression L"hello"', substrs = ['hello'])
- self.expect('expression u"hello"',
- substrs = ['hello'])
+ if expr == 2: self.expect('expression u"hello"', substrs = ['hello'])
- self.expect('expression U"hello"',
- substrs = ['hello'])
+ if expr == 3: self.expect('expression U"hello"', substrs = ['hello'])
if __name__ == '__main__':
import atexit
OpenPOWER on IntegriCloud