summaryrefslogtreecommitdiffstats
path: root/lldb/test/lang/objc/objc-class-method/TestObjCClassMethod.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/lang/objc/objc-class-method/TestObjCClassMethod.py')
-rw-r--r--lldb/test/lang/objc/objc-class-method/TestObjCClassMethod.py29
1 files changed, 7 insertions, 22 deletions
diff --git a/lldb/test/lang/objc/objc-class-method/TestObjCClassMethod.py b/lldb/test/lang/objc/objc-class-method/TestObjCClassMethod.py
index b3929b97a5e..27b091563f1 100644
--- a/lldb/test/lang/objc/objc-class-method/TestObjCClassMethod.py
+++ b/lldb/test/lang/objc/objc-class-method/TestObjCClassMethod.py
@@ -10,25 +10,6 @@ class TestObjCClassMethod(TestBase):
mydir = TestBase.compute_mydir(__file__)
- @skipUnlessDarwin
- @python_api_test
-
- @expectedFailurei386
- @dsym_test
- def test_with_dsym_and_python_api(self):
- """Test calling functions in class methods."""
- self.buildDsym()
- self.objc_class_method()
-
- @skipUnlessDarwin
- @expectedFailurei386
- @python_api_test
- @dwarf_test
- def test_with_dwarf_and_python_api(self):
- """Test calling functions in class methods."""
- self.buildDwarf()
- self.objc_class_method()
-
def setUp(self):
# Call super's setUp().
TestBase.setUp(self)
@@ -36,9 +17,13 @@ class TestObjCClassMethod(TestBase):
self.main_source = "class.m"
self.break_line = line_number(self.main_source, '// Set breakpoint here.')
+ @skipUnlessDarwin
+ @expectedFailurei386
+ @python_api_test
#rdar://problem/9745789 "expression" can't call functions in class methods
- def objc_class_method(self):
- """Test calling class methods."""
+ def test_with_python_api(self):
+ """Test calling functions in class methods."""
+ self.build()
exe = os.path.join(os.getcwd(), "a.out")
target = self.dbg.CreateTarget(exe)
@@ -65,7 +50,7 @@ class TestObjCClassMethod(TestBase):
cmd_value = frame.EvaluateExpression ("(int)[Foo doSomethingWithString:@\"Hello\"]")
self.assertTrue (cmd_value.IsValid())
- self.assertTrue (cmd_value.GetValueAsUnsigned() == 5)
+ self.assertTrue (cmd_value.GetValueAsUnsigned() == 5)
if __name__ == '__main__':
import atexit
OpenPOWER on IntegriCloud