aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.guile
diff options
context:
space:
mode:
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>2019-06-03 21:50:22 +0200
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>2019-06-03 21:59:35 +0200
commit206584bdf15aa19bb3c971b28e2c1fc04f32d027 (patch)
tree81236031111474486173150fdd44bbea572008ec /gdb/testsuite/gdb.guile
parent66d8c862859ab241c1db9b40c3981f8a71951bd4 (diff)
downloadgdb-206584bdf15aa19bb3c971b28e2c1fc04f32d027.zip
gdb-206584bdf15aa19bb3c971b28e2c1fc04f32d027.tar.gz
gdb-206584bdf15aa19bb3c971b28e2c1fc04f32d027.tar.bz2
Update tests following changes to "help" and "apropos"
Factorizes the testing of the help output, by having a single place that defines the common help trailer and/or prefix messages.
Diffstat (limited to 'gdb/testsuite/gdb.guile')
-rw-r--r--gdb/testsuite/gdb.guile/scm-cmd.exp4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.guile/scm-cmd.exp b/gdb/testsuite/gdb.guile/scm-cmd.exp
index 3f24df3..518da66 100644
--- a/gdb/testsuite/gdb.guile/scm-cmd.exp
+++ b/gdb/testsuite/gdb.guile/scm-cmd.exp
@@ -130,9 +130,7 @@ gdb_test "test-help ugh" "test-cmd output, arg = ugh" \
"call simple user-defined command"
# Make sure the command shows up in `help user-defined`.
-gdb_test "help user-defined" \
- "User-defined commands.\[\r\n\]+The commands in this class are those defined by the user.\[\r\n\]+Use the \"define\" command to define a command.\[\r\n\]+List of commands:\[\r\n\]+test-help -- Docstring\[\r\n\]+Type \"help\" followed by command name for full documentation.\[\r\n\]+Type \"apropos word\" to search for commands related to \"word\".\[\r\n\]+Command name abbreviations are allowed if unambiguous.\[\r\n\]+" \
- "see user-defined command in `help user-defined`"
+test_user_defined_class_help {"test-help -- Docstring[\r\n]"}
# Make sure the command does not show up in `show user`.
gdb_test "show user test-help" "Not a user command\." \