diff mbox

[committed,testsuite] generalize breakpoint pattern in gdb.mi/mi-cli.exp

Message ID 55FC3F05.3000301@codesourcery.com
State New
Headers show

Commit Message

Sandra Loosemore Sept. 18, 2015, 4:42 p.m. UTC
This patch removes another assumption that filenames reported in 
breakpoint messages must include a pathname prefix.  I've committed it 
as obvious given that there is past precedent for similar fixes.

-Sandra
diff mbox

Patch

diff --git a/gdb/testsuite/gdb.mi/mi-cli.exp b/gdb/testsuite/gdb.mi/mi-cli.exp
index 5f75bef..aad9880 100644
--- a/gdb/testsuite/gdb.mi/mi-cli.exp
+++ b/gdb/testsuite/gdb.mi/mi-cli.exp
@@ -184,7 +184,7 @@  mi_send_resuming_command "exec-continue" "-exec-continue to line \$line_main_hel
 
 set output [mi_gdb_expect_cli_output "\\*stopped" "collect CLI output for breakpoint hit"]
 set test "breakpoint hit produces CLI output"
-set pattern "\\\\nTemporary breakpoint 3, main \\(\\) at \[^\n\]+basics.c:$line_main_hello\\\\n\[^\n\]+Hello"
+set pattern "\\\\nTemporary breakpoint 3, main \\(\\) at \[^\n\]*basics.c:$line_main_hello\\\\n\[^\n\]+Hello"
 
 if {[regexp $pattern $output]} {
     pass $test