From 4e2de364438bd40950e449fdf4c81918ccfd1570 Mon Sep 17 00:00:00 2001 From: Sean Callanan Date: Thu, 2 Apr 2015 21:35:04 +0000 Subject: [PATCH] Add checks to the modules test case to ensure that module types and runtime types play well together. llvm-svn: 233976 --- lldb/test/lang/objc/modules/TestObjCModules.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lldb/test/lang/objc/modules/TestObjCModules.py b/lldb/test/lang/objc/modules/TestObjCModules.py index 0c91d0f11a42..d9c5fbaefffc 100644 --- a/lldb/test/lang/objc/modules/TestObjCModules.py +++ b/lldb/test/lang/objc/modules/TestObjCModules.py @@ -73,6 +73,12 @@ class ObjCModulesTestCase(TestBase): self.expect("expr array.count", VARIABLES_DISPLAYED_CORRECTLY, substrs = ["NSUInteger", "3"]) + + self.expect("p *[NSURL URLWithString:@\"http://lldb.llvm.org\"]", VARIABLES_DISPLAYED_CORRECTLY, + substrs = ["NSURL", "isa", "_urlString"]) + + self.expect("p [NSURL URLWithString:@\"http://lldb.llvm.org\"].scheme", VARIABLES_DISPLAYED_CORRECTLY, + substrs = ["http"]) if __name__ == '__main__': import atexit