summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2019-09-20 20:19:18 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2019-09-20 20:19:18 +0000
commitce7cfbccc63ba318bed00aef65dab49adc6f43c8 (patch)
tree8c03bbed70ea4ce4bd63bfee4b53abbb3ce2d44e /lldb/packages/Python/lldbsuite/test/functionalities/data-formatter
parent949a126438b9d4949208fec549e2772e3270d7d5 (diff)
downloadbcm5719-llvm-ce7cfbccc63ba318bed00aef65dab49adc6f43c8.tar.gz
bcm5719-llvm-ce7cfbccc63ba318bed00aef65dab49adc6f43c8.zip
[lldb] Process formatters in reverse-chronological order
If one reverts D66398 then the TestDataFormatterStdList does fail - as the C++ formatters are initialized in the opposite order. But the current state of trunk does not mind the order for C++ formatters. It is using now a single std::vector as suggested by Pavel Labath. Differential Revision: https://reviews.llvm.org/D66654 llvm-svn: 372424
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/data-formatter')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-advanced/TestDataFormatterAdv.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-advanced/TestDataFormatterAdv.py b/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-advanced/TestDataFormatterAdv.py
index 8615fe65dd5..3390da4bf3f 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-advanced/TestDataFormatterAdv.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-advanced/TestDataFormatterAdv.py
@@ -136,6 +136,13 @@ class AdvDataFormatterTestCase(TestBase):
self.expect("frame variable int_array",
substrs=['1,2'])
+ # Test the patterns are matched in reverse-chronological order.
+ self.runCmd(
+ 'type summary add --summary-string \"${var[2-3]}\" "int []"')
+
+ self.expect("frame variable int_array",
+ substrs=['3,4'])
+
self.runCmd("type summary clear")
self.runCmd("type summary add -c -x \"i_am_cool \[[0-9]\]\"")
OpenPOWER on IntegriCloud