This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] gdb.base/pending.exp replace gdb_test_multi
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Michael Snyder <msnyder at vmware dot com>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Tue, 8 Jun 2010 00:51:02 +0200
- Subject: Re: [patch] gdb.base/pending.exp replace gdb_test_multi
- References: <4C097B4A.8080005@vmware.com>
On Sat, 05 Jun 2010 00:16:42 +0200, Michael Snyder wrote:
> This is a simplification.
> -gdb_test_multiple "break pendfunc2" "Don't set pending breakpoint" {
> - -re ".*Make breakpoint pending.*y or \\\[n\\\]. $" {
> - gdb_test "n" "" "Don't set pending breakpoint"
> - }
> -}
> +gdb_test "break pendfunc2" \
> + "" \
> + "Don't set pending breakpoint" \
> + ".*Make breakpoint pending.*y or \\\[n\\\]. $" \
> + "n"
With ".*" vs. gdb_test_no_output distinguishing now should be ".*" here
instead? (Maybe a more specific string would be also appropriate.)
Thanks,
Jan