summaryrefslogtreecommitdiffstats
path: root/lldb/test/lang/objc/modules/TestObjCModules.py
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2015-04-07 17:02:02 +0000
committerSean Callanan <scallanan@apple.com>2015-04-07 17:02:02 +0000
commit157f1af74328f3ae3e7af29fa80259ab15f20522 (patch)
tree607df2f6589f86cd0a44a39cb81451865e1f6ab8 /lldb/test/lang/objc/modules/TestObjCModules.py
parentd382ed25f65ccd282c83fde2160aae798acdedc6 (diff)
downloadbcm5719-llvm-157f1af74328f3ae3e7af29fa80259ab15f20522.tar.gz
bcm5719-llvm-157f1af74328f3ae3e7af29fa80259ab15f20522.zip
Fixed a problem where the second @import statement
in a session would be silently ignored by the compiler because the compiler looked at its SourceLocation and decided it had already handled it. Also updated the relevant test case. <rdar://problem/20315447> llvm-svn: 234330
Diffstat (limited to 'lldb/test/lang/objc/modules/TestObjCModules.py')
-rw-r--r--lldb/test/lang/objc/modules/TestObjCModules.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/lldb/test/lang/objc/modules/TestObjCModules.py b/lldb/test/lang/objc/modules/TestObjCModules.py
index b6628774088..0892b91db0f 100644
--- a/lldb/test/lang/objc/modules/TestObjCModules.py
+++ b/lldb/test/lang/objc/modules/TestObjCModules.py
@@ -67,9 +67,15 @@ class ObjCModulesTestCase(TestBase):
self.common_setup()
- self.expect("expr @import Foundation; 3", VARIABLES_DISPLAYED_CORRECTLY,
+ self.expect("expr @import Darwin; 3", VARIABLES_DISPLAYED_CORRECTLY,
substrs = ["int", "3"])
+ self.expect("expr getpid()", VARIABLES_DISPLAYED_CORRECTLY,
+ substrs = ["pid_t"])
+
+ self.expect("expr @import Foundation; 4", VARIABLES_DISPLAYED_CORRECTLY,
+ substrs = ["int", "4"])
+
self.expect("expr string.length", VARIABLES_DISPLAYED_CORRECTLY,
substrs = ["NSUInteger", "5"])
OpenPOWER on IntegriCloud