summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2014-12-12 22:11:32 +0000
committerEnrico Granata <egranata@apple.com>2014-12-12 22:11:32 +0000
commit53d498bc66f794150fca8e8254e21c1a8b89870f (patch)
treec51b4a5927e68e38b2d6a177e32ed5388bf048e1
parent9fa3dd4f3b401214f84bcc8d45940d9e01a86677 (diff)
downloadbcm5719-llvm-53d498bc66f794150fca8e8254e21c1a8b89870f.tar.gz
bcm5719-llvm-53d498bc66f794150fca8e8254e21c1a8b89870f.zip
Fix up this test case
llvm-svn: 224157
-rw-r--r--lldb/test/expression_command/formatters/TestFormatters.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/lldb/test/expression_command/formatters/TestFormatters.py b/lldb/test/expression_command/formatters/TestFormatters.py
index eb543045db1..6a55ea3c31d 100644
--- a/lldb/test/expression_command/formatters/TestFormatters.py
+++ b/lldb/test/expression_command/formatters/TestFormatters.py
@@ -74,23 +74,23 @@ class ExprFormattersTestCase(TestBase):
substrs = ['(int *) $', '= 0x', ' -> 13'])
self.expect("expression foo1",
- substrs = ['(foo) $', ' = a = 12, a_ptr = ', ' -> 13, i = 24, i_ptr = ', ' -> 25'])
+ substrs = ['(foo) $', ' a = 12', 'a_ptr = ', ' -> 13','i = 24','i_ptr = ', ' -> 25'])
- self.expect("expression new foo(47)",
- substrs = ['(foo *) $', ' a = 47, a_ptr = ', ' -> 48, i = 94, i_ptr = ', ' -> 95'])
+ self.expect("expression --ptr-depth=1 -- new foo(47)",
+ substrs = ['(foo *) $', 'a = 47','a_ptr = ', ' -> 48','i = 94','i_ptr = ', ' -> 95'])
self.expect("expression foo2",
- substrs = ['(foo) $', ' = a = 121, a_ptr = ', ' -> 122, i = 242, i_ptr = ', ' -> 243'])
+ substrs = ['(foo) $', 'a = 121','a_ptr = ', ' -> 122','i = 242','i_ptr = ', ' -> 243'])
object_name = self.res.GetOutput()
object_name = object_name[7:]
object_name = object_name[0:object_name.find(' =')]
self.expect("frame variable foo2",
- substrs = ['(foo)', 'foo2', ' = a = 121, a_ptr = ', ' -> 122, i = 242, i_ptr = ', ' -> 243'])
+ substrs = ['(foo)', 'foo2', 'a = 121','a_ptr = ', ' -> 122','i = 242','i_ptr = ', ' -> 243'])
self.expect("expression $" + object_name,
- substrs = ['(foo) $', ' = a = 121, a_ptr = ', ' -> 122, i = 242, i_ptr = ', ' -> 243', ', h = 245 , k = 247'])
+ substrs = ['(foo) $', 'a = 121','a_ptr = ', ' -> 122','i = 242','i_ptr = ', ' -> 243', 'h = 245','k = 247'])
self.runCmd("type summary delete foo")
self.runCmd("type synthetic add --python-class foosynth.FooSyntheticProvider foo")
@@ -105,7 +105,7 @@ class ExprFormattersTestCase(TestBase):
self.runCmd("type summary add -F formatters.foo_SummaryProvider foo")
self.expect("expression foo2",
- substrs = ['(foo) $', ' = a = 7777, a_ptr = ', ' -> 122, i = 242, i_ptr = ', ' -> 8888'])
+ substrs = ['(foo) $', 'a = 7777','a_ptr = ', ' -> 122','i = 242','i_ptr = ', ' -> 8888'])
self.expect("expression $" + object_name + '.a',
substrs = ['7777'])
@@ -114,7 +114,7 @@ class ExprFormattersTestCase(TestBase):
substrs = ['8888'])
self.expect("expression $" + object_name,
- substrs = ['(foo) $', ' = a = 121, a_ptr = ', ' -> 122, i = 242, i_ptr = ', ' -> 8888', 'h = 245 , k = 247'])
+ substrs = ['(foo) $', 'a = 121', 'a_ptr = ', ' -> 122', 'i = 242', 'i_ptr = ', ' -> 8888', 'h = 245','k = 247'])
self.runCmd("type summary delete foo")
self.runCmd("type synthetic add --python-class foosynth.FooSyntheticProvider foo")
@@ -128,7 +128,7 @@ class ExprFormattersTestCase(TestBase):
self.runCmd("type summary add -F formatters.foo_SummaryProvider foo")
self.expect("expression $" + object_name,
- substrs = ['(foo) $', ' = a = 121, a_ptr = ', ' -> 122, i = 242, i_ptr = ', ' -> 8888', 'h = 9999 , k = 247'])
+ substrs = ['(foo) $', 'a = 121','a_ptr = ', ' -> 122','i = 242', 'i_ptr = ', ' -> 8888', 'h = 245','k = 247'])
process = self.dbg.GetSelectedTarget().GetProcess()
thread = process.GetThreadAtIndex(0)
OpenPOWER on IntegriCloud