From db25f29d62b64de9a1f2bf1bbd71bd08c5347c98 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Mon, 1 Feb 2010 17:15:36 +0000 Subject: * gdb.base/gcore.exp (capture_command_output): Use gdb_test_multiple. --- gdb/testsuite/gdb.base/gcore.exp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'gdb/testsuite/gdb.base') diff --git a/gdb/testsuite/gdb.base/gcore.exp b/gdb/testsuite/gdb.base/gcore.exp index 8ed966c..ee20284 100644 --- a/gdb/testsuite/gdb.base/gcore.exp +++ b/gdb/testsuite/gdb.base/gcore.exp @@ -69,14 +69,10 @@ proc capture_command_output { command prefix } { global expect_out set output_string "" - send_gdb "$command\n" - gdb_expect { + gdb_test_multiple "$command" "capture_command_output for $command" { -re "${command}\[\r\n\]+${prefix}(.*)\[\r\n\]+$gdb_prompt $" { set output_string $expect_out(1,string) } - default { - fail "capture_command_output failed on $command." - } } return $output_string } -- cgit v1.1