[PATCH] gdb.base/commands.exp: fix racy test

Andreas Schwab schwab@redhat.com
Wed Apr 13 08:55:00 GMT 2011


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."



More information about the Gdb-patches mailing list