This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] gdb.base/commands.exp: fix racy test
- From: Andreas Schwab <schwab at redhat dot com>
- To: Marek Polacek <mpolacek at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 13 Apr 2011 10:55:33 +0200
- Subject: Re: [PATCH] gdb.base/commands.exp: fix racy test
- References: <4DA55797.5090800@redhat.com>
Marek Polacek <mpolacek@redhat.com> writes:
> gdb_test_multiple "define backtrace" "define backtrace" {
> - -re "Really redefine built-in.*$" {
> + -re "Really redefine built-in command \"backtrace\"\\? \\(y or n\\) $" {
Alternatively, you could use "[^\n]*" in place of ".*".
Andreas.
--
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00 984E
"And now for something completely different."