diff options
Diffstat (limited to 'lldb/test/lang/objc/objc-static-method')
-rw-r--r-- | lldb/test/lang/objc/objc-static-method/TestObjCStaticMethod.py | 5 | ||||
-rw-r--r-- | lldb/test/lang/objc/objc-static-method/static.m | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lldb/test/lang/objc/objc-static-method/TestObjCStaticMethod.py b/lldb/test/lang/objc/objc-static-method/TestObjCStaticMethod.py index 37c5b90924f..7e457f6e9d8 100644 --- a/lldb/test/lang/objc/objc-static-method/TestObjCStaticMethod.py +++ b/lldb/test/lang/objc/objc-static-method/TestObjCStaticMethod.py @@ -14,7 +14,6 @@ class TestObjCStaticMethod(TestBase): @python_api_test #<rdar://problem/9745789> "expression" can't call functions in class methods - @unittest2.expectedFailure def test_with_dsym_and_python_api(self): """Test calling functions in static methods.""" self.buildDsym() @@ -22,7 +21,6 @@ class TestObjCStaticMethod(TestBase): @python_api_test #<rdar://problem/9745789> "expression" can't call functions in class methods - @unittest2.expectedFailure def test_with_dwarf_and_python_api(self): """Test calling functions in static methods.""" self.buildDwarf() @@ -35,7 +33,6 @@ class TestObjCStaticMethod(TestBase): self.main_source = "static.m" self.break_line = line_number(self.main_source, '// Set breakpoint here.') - @unittest2.expectedFailure #rdar://problem/9745789 "expression" can't call functions in class methods def objc_static_method(self): """Test calling functions in static methods.""" @@ -66,7 +63,7 @@ class TestObjCStaticMethod(TestBase): cmd_value = frame.EvaluateExpression ("(char *) sel_getName (_cmd)") self.assertTrue (cmd_value.IsValid()) sel_name = cmd_value.GetSummary() - self.assertTrue (sel_name == "doSomethingWithString:", "Got the right value for the selector as string.") + self.assertTrue (sel_name == "\"doSomethingWithString:\"", "Got the right value for the selector as string.") if __name__ == '__main__': import atexit diff --git a/lldb/test/lang/objc/objc-static-method/static.m b/lldb/test/lang/objc/objc-static-method/static.m index 7201ce6f802..a069c1502ad 100644 --- a/lldb/test/lang/objc/objc-static-method/static.m +++ b/lldb/test/lang/objc/objc-static-method/static.m @@ -2,14 +2,17 @@ @interface Foo : NSObject +(void) doSomethingWithString: (NSString *) string; - +-(void) doSomethingWithNothing; @end @implementation Foo +(void) doSomethingWithString: (NSString *) string { NSLog (@"String is: %@.", string); // Set breakpoint here. +} +-(void) doSomethingWithNothing +{ } @end |