From f57929f229c97462650cef4086bb930290ba92af Mon Sep 17 00:00:00 2001 From: Sandra Loosemore Date: Fri, 18 Sep 2015 09:39:31 -0700 Subject: [PATCH] Generalize breakpoint pattern in gdb.mi/mi-cli.exp. 2015-09-18 Sandra Loosemore gdb/testsuite/ * gdb.mi/mi-cli.exp: Don't require directory prefix in breakpoint filename pattern. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.mi/mi-cli.exp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 1535b46c509..e7a7d3a7fb7 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-09-18 Sandra Loosemore + + * gdb.mi/mi-cli.exp: Don't require directory prefix in breakpoint + filename pattern. + 2015-09-18 Sandra Loosemore * gdb.mi/mi-dprintf-pending.exp: Don't require directory prefix diff --git a/gdb/testsuite/gdb.mi/mi-cli.exp b/gdb/testsuite/gdb.mi/mi-cli.exp index 5f75bef7c8b..aad98809fd1 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 -- 2.30.2