From: Simon Marchi Date: Tue, 16 Aug 2022 14:41:47 +0000 (-0400) Subject: gdb/testsuite: fix breakpoint script output in gdb.mi/mi-break.exp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=14bc174ad3d23b43121a4696bc30c3235d4975ec;p=binutils-gdb.git gdb/testsuite: fix breakpoint script output in gdb.mi/mi-break.exp Commit 9db0d8536dbc ("gdb/mi: fix breakpoint script field output") fixed the output of the script key in the MI breakpoint output, from script={"print 10","continue"} to script=["print 10","continue"] However, it missed updating this test case, which still tests for the old (broken) form, causing: FAIL: gdb.mi/mi-break.exp: mi-mode=main: test_breakpoint_commands: breakpoint commands: check that commands are set (unexpected output) FAIL: gdb.mi/mi-break.exp: mi-mode=separate: test_breakpoint_commands: breakpoint commands: check that commands are set (unexpected output) Update the test to expect the new form. Change-Id: I174919d4eea53e96d914ca9bd1cf6f01c8de30b8 --- diff --git a/gdb/testsuite/gdb.mi/mi-break.exp b/gdb/testsuite/gdb.mi/mi-break.exp index b64fe196940..24353379ffe 100644 --- a/gdb/testsuite/gdb.mi/mi-break.exp +++ b/gdb/testsuite/gdb.mi/mi-break.exp @@ -203,7 +203,7 @@ proc_with_prefix test_breakpoint_commands {} { # seen. set bp_script [mi_make_breakpoint -number 7 -disp keep -func callee2 \ -file ".*basics.c" -line $line_callee2_body \ - -script {\{"print 10","continue"\}}] + -script {\["print 10","continue"\]}] mi_gdb_test "-break-info 7" \ "\\^done,[mi_make_breakpoint_table [list $bp_script]]" \ "breakpoint commands: check that commands are set"