summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-10-31 23:35:33 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-10-31 23:35:33 +0000
commit5fede4bfba363c3772c9d610c0fc191824ea9c69 (patch)
treec904847e9c4f5f1b2b1e8ae000102816072cc32b
parent9a1e9af2ba765000740516ffe954196d61728e9d (diff)
downloadbcm5719-llvm-5fede4bfba363c3772c9d610c0fc191824ea9c69.tar.gz
bcm5719-llvm-5fede4bfba363c3772c9d610c0fc191824ea9c69.zip
Add expectedFailure decorators.
rdar://problem/10373783 llvm-svn: 143396
-rw-r--r--lldb/test/lang/cpp/stl/TestSTL.py17
1 files changed, 10 insertions, 7 deletions
diff --git a/lldb/test/lang/cpp/stl/TestSTL.py b/lldb/test/lang/cpp/stl/TestSTL.py
index 33dfc7fc130..161080a1f96 100644
--- a/lldb/test/lang/cpp/stl/TestSTL.py
+++ b/lldb/test/lang/cpp/stl/TestSTL.py
@@ -1,5 +1,5 @@
"""
-Test that we can successfully step into an STL function.
+Test some expressions involving STL data types.
"""
import os, time
@@ -11,16 +11,18 @@ class STLTestCase(TestBase):
mydir = os.path.join("lang", "cpp", "stl")
+ @unittest2.expectedFailure
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
def test_with_dsym(self):
- """Test that we can successfully step into an STL function."""
+ """Test some expressions involving STL data types."""
self.buildDsym()
- self.step_into_stl()
+ self.step_stl_exprs()
+ @unittest2.expectedFailure
def test_with_dwarf(self):
- """Test that we can successfully step into an STL function."""
+ """Test some expressions involving STL data types."""
self.buildDwarf()
- self.step_into_stl()
+ self.step_stl_exprs()
def setUp(self):
# Call super's setUp().
@@ -28,8 +30,8 @@ class STLTestCase(TestBase):
# Find the line number to break inside main().
self.line = line_number('main.cpp', '// Set break point at this line.')
- def step_into_stl(self):
- """Test that we can successfully step into an STL function."""
+ def step_stl_exprs(self):
+ """Test some expressions involving STL data types."""
exe = os.path.join(os.getcwd(), "a.out")
# The following two lines, if uncommented, will enable loggings.
@@ -61,6 +63,7 @@ class STLTestCase(TestBase):
self.runCmd('expr for (int i = 0; i < hello_world.length(); ++i) { (void)printf("%c\\n", hello_world[i]); }')
+ # rdar://problem/10373783
self.expect('expr associative_array.size()',
substrs = [' = 3'])
self.expect('expr associative_array.count(hello_world)',
OpenPOWER on IntegriCloud