[PATCH v3] arc: Don't use multiline in arc-disassembler-options.exp test
Andreas Schwab
schwab@suse.de
Mon Feb 12 10:27:25 GMT 2024
On Feb 12 2024, Yuriy Kolerov wrote:
> diff --git a/gdb/testsuite/gdb.arch/arc-disassembler-options.exp b/gdb/testsuite/gdb.arch/arc-disassembler-options.exp
> index 655edcc774b..497e0aba91e 100644
> --- a/gdb/testsuite/gdb.arch/arc-disassembler-options.exp
> +++ b/gdb/testsuite/gdb.arch/arc-disassembler-options.exp
> @@ -28,10 +28,11 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {}] \
> clean_restart ${objfile}
>
> proc arc_disassemble_test { func insn mesg } {
> - gdb_test "disassemble $func" \
> - "Dump of assembler code for function $func:\r\n\
> - \[^:\]+:\t$insn\r\nEnd of assembler dump\." \
> - $mesg
> + set pass_re [multi_line \
> + "Dump of assembler code for function $func:" \
> + "\[^:\]+:\t$insn" \
> + "End of assembler dump\."]
If you want to regexp-quote a period, you need to write it as "\\.", so
that the backslash is not eaten by the string reader.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Gdb-patches
mailing list