summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/functionalities
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2016-01-28 19:21:38 +0000
committerEnrico Granata <egranata@apple.com>2016-01-28 19:21:38 +0000
commit6b7427856abbc1c284c217012b1429def2b31cf7 (patch)
tree74a5c44791245d78302429526e8d93ee5da2806a /lldb/packages/Python/lldbsuite/test/functionalities
parent16f7e554a1f8bbbcc494ee1533335f044ee76ee8 (diff)
downloadbcm5719-llvm-6b7427856abbc1c284c217012b1429def2b31cf7.tar.gz
bcm5719-llvm-6b7427856abbc1c284c217012b1429def2b31cf7.zip
Fix an issue where the type <formatter> list command would not accept a valid argument and instead error out complaining about a malformed regex
rdar://problem/24380025 llvm-svn: 259078
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/type_summary_list_arg/TestTypeSummaryListArg.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/type_summary_list_arg/TestTypeSummaryListArg.py b/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/type_summary_list_arg/TestTypeSummaryListArg.py
new file mode 100644
index 00000000000..8381b123743
--- /dev/null
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/type_summary_list_arg/TestTypeSummaryListArg.py
@@ -0,0 +1,26 @@
+"""
+Test lldb data formatter subsystem.
+"""
+
+from __future__ import print_function
+
+
+
+import os, time
+import lldb
+from lldbsuite.test.lldbtest import *
+import lldbsuite.test.lldbutil as lldbutil
+
+class TypeSummaryListArgumentTestCase(TestBase):
+
+ mydir = TestBase.compute_mydir(__file__)
+
+ def setUp(self):
+ # Call super's setUp().
+ TestBase.setUp(self)
+
+ @no_debug_info_test
+ def test_type_summary_list_with_arg(self):
+ """Test that the 'type summary list' command handles command line arguments properly"""
+ self.expect('type summary list Foo', substrs=['Category: default', 'Category: system'])
+ self.expect('type summary list char', substrs=['char *', 'unsigned char'])
OpenPOWER on IntegriCloud