aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2006-11-10 16:58:53 +0000
committerVladimir Prus <vladimir@codesourcery.com>2006-11-10 16:58:53 +0000
commitd8295fe954b3f129fe3439aa17bb2c2be45d264c (patch)
treee6b39931532f4a68e365d612f49c0a50ca09b3a1 /gdb/testsuite/gdb.cp
parent73ca250004d8918d3fdaef1ce59291e05770e898 (diff)
downloadgdb-d8295fe954b3f129fe3439aa17bb2c2be45d264c.zip
gdb-d8295fe954b3f129fe3439aa17bb2c2be45d264c.tar.gz
gdb-d8295fe954b3f129fe3439aa17bb2c2be45d264c.tar.bz2
2006-11-10 Vladimir Prus <vladimir@codesourcery.com>
* gdb.base/completion.exp: Fix completion tests for 'info' and 'info '. * gdb.base/help.exp (help_test_raw, test_class_help) (test_prefix_command_help): Move... * lib/gdb.exp: Here. * gdb.base/main.exp: Adjust. * gdb.cp/maint.exp: Adjust. * gdb.trace/tracecmd.exp: Use test_help_class.
Diffstat (limited to 'gdb/testsuite/gdb.cp')
-rw-r--r--gdb/testsuite/gdb.cp/maint.exp14
1 files changed, 9 insertions, 5 deletions
diff --git a/gdb/testsuite/gdb.cp/maint.exp b/gdb/testsuite/gdb.cp/maint.exp
index 6b781df..15e7677 100644
--- a/gdb/testsuite/gdb.cp/maint.exp
+++ b/gdb/testsuite/gdb.cp/maint.exp
@@ -29,13 +29,17 @@ proc test_help {} {
set first_component_help "Print the first class/namespace component of NAME"
set namespace_help "Print the list of possible C\\+\\+ namespaces"
- set multiple_help_body "List of maintenance cplus subcommands:\r\n\r\nmaintenance cplus first_component -- ${first_component_help}\r\nmaintenance cplus namespace -- ${namespace_help}\r\n\r\nType \"help maintenance cplus\" followed by maintenance cplus subcommand name for full documentation.\r\nCommand name abbreviations are allowed if unambiguous."
+ test_prefix_command_help {"maintenance cplus"} {
+ "C\\+\\+ maintenance commands\.\[\r\n\]+"
+ }
+
+ test_prefix_command_help {"maint cp" "maintenance cplus"} {
+ "C\\+\\+ maintenance commands.\r\n\r\n"
+ }
- set help_maint_cp "C\\+\\+ maintenance commands.\r\n\r\n${multiple_help_body}"
+ set multiple_help_body "List of maintenance cplus subcommands:\r\n\r\nmaintenance cplus first_component -- ${first_component_help}\r\nmaintenance cplus namespace -- ${namespace_help}\r\n\r\nType \"help maintenance cplus\" followed by maintenance cplus subcommand name for full documentation.\r\nCommand name abbreviations are allowed if unambiguous."
- gdb_test "help maintenance cplus" "${help_maint_cp}"
- gdb_test "help maint cp" "${help_maint_cp}"
- gdb_test "maint cp" "\"maintenance cplus\" must be followed by the name of a command.\r\n${multiple_help_body}"
+ gdb_test "maint cp" "\"maintenance cplus\" must be followed by the name of a command.\r\n.*"
gdb_test "help maint cp first_component" "${first_component_help}."
gdb_test "help maint cp namespace" "${namespace_help}."