Skip to content

Commit e7006ef

Browse files
committed
arc: Don't use multiline in arc-disassembler-options.exp test
Breaking a TCL string to several lines leads to adding of extra symbols to the resulting expect string. In turn, this leads to failing of all test cases in gdb.arch/arc-disassembler-options.exp testsuite. It's necessary to use multi_line function in such cases. Approved-By: Tom Tromey <tom@tromey.com>
1 parent 8270cfb commit e7006ef

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

gdb/testsuite/gdb.arch/arc-disassembler-options.exp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {}] \
2828
clean_restart ${objfile}
2929

3030
proc arc_disassemble_test { func insn mesg } {
31-
gdb_test "disassemble $func" \
32-
"Dump of assembler code for function $func:\r\n\
33-
\[^:\]+:\t$insn\r\nEnd of assembler dump\." \
34-
$mesg
31+
set pass_re [multi_line \
32+
"Dump of assembler code for function $func:" \
33+
"\[^:\]+:\t$insn" \
34+
"End of assembler dump\\."]
35+
gdb_test "disassemble $func" $pass_re $mesg
3536
}
3637

3738
# Verify defaults.

0 commit comments

Comments
 (0)