From 44e9736318429d5b2adb158299dac4d983096104 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Tue, 21 May 2013 15:00:32 +0000 Subject: [PATCH] gdb/testsuite/ PR testsuite/12649 * gdb.mi/mi-dprintf.exp (mi_continue_dprintf): Fix expect strings for racy matches. --- gdb/testsuite/ChangeLog | 6 ++++++ gdb/testsuite/gdb.mi/mi-dprintf.exp | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index b2e780837bd..b066d013c93 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2013-05-21 Jan Kratochvil + + PR testsuite/12649 + * gdb.mi/mi-dprintf.exp (mi_continue_dprintf): Fix expect strings for + racy matches. + 2013-05-21 Christian Groessler * gdb.dwarf2/dw2-dir-file-name.exp: Don't use brace expansion, diff --git a/gdb/testsuite/gdb.mi/mi-dprintf.exp b/gdb/testsuite/gdb.mi/mi-dprintf.exp index 457f33207c4..ea8b3a820ab 100644 --- a/gdb/testsuite/gdb.mi/mi-dprintf.exp +++ b/gdb/testsuite/gdb.mi/mi-dprintf.exp @@ -68,7 +68,7 @@ proc mi_continue_dprintf {args} { mi_run_cmd set msg "mi 1st dprintf" gdb_expect { - -re ".*At foo entry.*arg=1234, g=1234.*" { + -re ".*At foo entry.*arg=1234, g=1234" { pass $msg } -re ".*$mi_gdb_prompt$" { @@ -83,7 +83,7 @@ proc mi_continue_dprintf {args} { set msg "mi 2nd dprintf" mi_send_resuming_command "exec-continue" "$msg continue" gdb_expect { - -re ".*At foo entry.*arg=1235, g=2222.*" { + -re ".*At foo entry.*arg=1235, g=2222.*$mi_gdb_prompt$" { pass $msg } -re ".*$mi_gdb_prompt$" { -- 2.30.2