From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2115) id A4FA73857C7D; Tue, 13 Feb 2024 21:49:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A4FA73857C7D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1707860950; bh=ij1l7f+OcUKpVEdJhTU3U99CzcFNx2GzXfUxv8U4dLg=; h=From:To:Subject:Date:From; b=Jds0njfVsM3xNW+NDr9qiMBrHJJGfOPccRVRj0mXglxVvq9LIVm+5nsZo7as7Eijf GxJc6dTG2tTbZ30opzXBAAToZik/BzcWMqr6qGf1AFps+pHAeKpXPIdkLmncLj8v3L UkwF41Sfrwgt8KE8EaagiACcbLa1F2dltHxtspMc= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Shahab Vahedi To: gdb-cvs@sourceware.org Subject: [binutils-gdb] arc: Don't use multiline in arc-disassembler-options.exp test X-Act-Checkin: binutils-gdb X-Git-Author: Yuriy Kolerov X-Git-Refname: refs/heads/master X-Git-Oldrev: a16034bf6417dc2259fef43fd5bcc2dd1dac562f X-Git-Newrev: fd07bcb16f1d0891b66931e0930a74355be12bb6 Message-Id: <20240213214910.A4FA73857C7D@sourceware.org> Date: Tue, 13 Feb 2024 21:49:08 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dfd07bcb16f1d= 0891b66931e0930a74355be12bb6 commit fd07bcb16f1d0891b66931e0930a74355be12bb6 Author: Yuriy Kolerov Date: Tue Feb 13 06:40:22 2024 +0000 arc: Don't use multiline in arc-disassembler-options.exp test =20 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. =20 Approved-By: Tom Tromey Diff: --- gdb/testsuite/gdb.arch/arc-disassembler-options.exp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gdb/testsuite/gdb.arch/arc-disassembler-options.exp b/gdb/test= suite/gdb.arch/arc-disassembler-options.exp index 29c7e60b487..3a4c5234891 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}" "${o= bjfile}" object {}] \ clean_restart ${objfile} =20 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\\."] + gdb_test "disassemble $func" $pass_re $mesg } =20 # Verify defaults.