[Lldb-commits] [lldb] r136316 - /lldb/trunk/test/lang/cpp/namespace/TestNamespace.py
Johnny Chen
johnny.chen at apple.com
Wed Jul 27 17:52:23 PDT 2011
Author: johnny
Date: Wed Jul 27 19:52:23 2011
New Revision: 136316
URL: http://llvm.org/viewvc/llvm-project?rev=136316&view=rev
Log:
Make the test criteria more stringent with respect to rdar://problem/8668674 to prevent accidental pass.
Modified:
lldb/trunk/test/lang/cpp/namespace/TestNamespace.py
Modified: lldb/trunk/test/lang/cpp/namespace/TestNamespace.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/namespace/TestNamespace.py?rev=136316&r1=136315&r2=136316&view=diff
==============================================================================
--- lldb/trunk/test/lang/cpp/namespace/TestNamespace.py (original)
+++ lldb/trunk/test/lang/cpp/namespace/TestNamespace.py Wed Jul 27 19:52:23 2011
@@ -82,11 +82,13 @@
# 'frame variable' with fully qualified name 'A::B::j' should work.
self.expect("frame variable A::B::j", VARIABLES_DISPLAYED_CORRECTLY,
- startstr = '(int) A::B::j = 4')
+ startstr = '(int) A::B::j = 4',
+ patterns = [' = 4$'])
# So should the anonymous namespace case.
self.expect("frame variable '(anonymous namespace)::i'", VARIABLES_DISPLAYED_CORRECTLY,
- startstr = '(int) (anonymous namespace)::i = 3')
+ startstr = '(int) (anonymous namespace)::i = 3',
+ patterns = [' = 3$'])
# rdar://problem/8660275
# test/namespace: 'expression -- i+j' not working
@@ -101,9 +103,9 @@
# rdar://problem/8668674
# expression command with fully qualified namespace for a variable does not work
self.expect("expression -- '::i'", VARIABLES_DISPLAYED_CORRECTLY,
- substrs = [" = 3"])
+ patterns = [' = 3$'])
self.expect("expression -- 'A::B::j'", VARIABLES_DISPLAYED_CORRECTLY,
- substrs = [" = 4"])
+ patterns = [' = 4$'])
if __name__ == '__main__':
More information about the lldb-commits
mailing list