aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/help.exp
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-05-24 22:06:59 +0000
committerMichael Snyder <msnyder@vmware.com>2010-05-24 22:06:59 +0000
commita76e022adf3f91ab44ae8b95e7a5bdc2e06b7136 (patch)
tree503018fe47350071e8f7d719a5dedd8e4c4925c0 /gdb/testsuite/gdb.base/help.exp
parentad3986f07b99393eb3a6282381d82cc1e8fe02fd (diff)
downloadfsf-binutils-gdb-a76e022adf3f91ab44ae8b95e7a5bdc2e06b7136.zip
fsf-binutils-gdb-a76e022adf3f91ab44ae8b95e7a5bdc2e06b7136.tar.gz
fsf-binutils-gdb-a76e022adf3f91ab44ae8b95e7a5bdc2e06b7136.tar.bz2
2010-05-24 Michael Snyder <msnyder@vmware.com>
* gdb.base/default.exp: Replace send_gdb with gdb_test. * gdb.base/define.exp: Replace send_gdb with gdb_test. * gdb.base/display.exp: Replace send_gdb with gdb_test. * gdb.base/dump.exp: Replace send_gdb with gdb_test. * gdb.base/ending-run.exp: Replace send_gdb with gdb_test. * gdb.base/eval-skip.exp: Replace send_gdb with gdb_test. * gdb.base/exprs.exp: Replace send_gdb with gdb_test. * gdb.base/fileio.exp: Replace send_gdb with gdb_test. * gdb.base/finish.exp: Replace send_gdb with gdb_test. * gdb.base/foll-fork.exp: Replace send_gdb with gdb_test. * gdb.base/funcargs.exp: Replace send_gdb with gdb_test. * gdb.base/gcore-buffer-overflow.exp: Replace send_gdb with gdb_test. * gdb.base/gcore.exp: Replace send_gdb with gdb_test. * gdb.base/gdb1090.exp: Replace send_gdb with gdb_test. * gdb.base/gdbvars.exp: Replace send_gdb with gdb_test. * gdb.base/help.exp: Replace send_gdb with gdb_test. * gdb.base/info-proc.exp: Replace send_gdb with gdb_test. * gdb.base/jump.exp: Replace send_gdb with gdb_test. * gdb.base/long_long.exp: Replace send_gdb with gdb_test.
Diffstat (limited to 'gdb/testsuite/gdb.base/help.exp')
-rw-r--r--gdb/testsuite/gdb.base/help.exp8
1 files changed, 2 insertions, 6 deletions
diff --git a/gdb/testsuite/gdb.base/help.exp b/gdb/testsuite/gdb.base/help.exp
index ab6b611..b193292 100644
--- a/gdb/testsuite/gdb.base/help.exp
+++ b/gdb/testsuite/gdb.base/help.exp
@@ -199,25 +199,21 @@ gdb_test "help finish" "Execute until selected stack frame returns\.\[\r\n\]+Upo
# test help forward-search
gdb_test "help forward-search" "Search for regular expression \\(see regex\\(3\\)\\) from last line listed.*" "help forward-search"
# test help gcore
-send_gdb "help gcore\n"
-gdb_expect {
+gdb_test_multiple "help gcore" "help gcore" {
-re "Undefined command: \"gcore\"\. Try \"help\".*$gdb_prompt $" {
pass "help gcore"
}
-re "Save a core file with the current state of the debugged process\.\[\r\n\]+Argument is optional filename\. Default filename is 'core\.<process_id>'.*$gdb_prompt $" {
pass "help gcore"
}
- default { fail "help gcore" }
}
-send_gdb "help generate-core-file\n"
-gdb_expect {
+gdb_test_multiple "help generate-core-file" "help generate-core-file" {
-re "Undefined command: \"generate-core-file\"\. Try \"help\".*$gdb_prompt $" {
pass "help gcore"
}
-re "Save a core file with the current state of the debugged process\.\[\r\n\]+Argument is optional filename\. Default filename is 'core\.<process_id>'.*$gdb_prompt $" {
pass "help gcore"
}
- default { fail "help gcore" }
}
# test help help "h" abbreviation
gdb_test "help h" "Print list of commands\." "help help \"h\" abbreviation"