Skip to content

Commit 378ad35

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 resuling expect string. In turn, this leads to failing of all test cases in gdb.arch/arc-disassembler-options.exp testsuite. Signed-off-by: Yuriy Kolerov <ykolerov@synopsys.com>
1 parent 22b1bf4 commit 378ad35

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ 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 prologue "Dump of assembler code for function $func:\r\n"
32+
set content "\[^:\]+:\t$insn\r\n"
33+
set epilogue "End of assembler dump\."
34+
gdb_test "disassemble $func" "$prologue$content$epilogue" $mesg
3535
}
3636

3737
# Verify defaults.

0 commit comments

Comments
 (0)