From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7854) id C320B3858D3C; Tue, 21 Feb 2023 09:48:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C320B3858D3C Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Cl?ment Chigot To: bfd-cvs@sourceware.org Subject: [binutils-gdb] gas/testsuite: adjust a test for case insensitive file systems X-Act-Checkin: binutils-gdb X-Git-Author: =?utf-8?q?Cl=C3=A9ment_Chigot?= X-Git-Refname: refs/heads/master X-Git-Oldrev: 6d0020873deb2f2c4e0965dc2ebf227bc1db3140 X-Git-Newrev: 1fafeaac8503eea2f61c3a35f0eef183b7e7cc65 Message-Id: <20230221094808.C320B3858D3C@sourceware.org> Date: Tue, 21 Feb 2023 09:48:08 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Feb 2023 09:48:08 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D1fafeaac8503= eea2f61c3a35f0eef183b7e7cc65 commit 1fafeaac8503eea2f61c3a35f0eef183b7e7cc65 Author: Cl=C3=A9ment Chigot Date: Wed Jan 11 15:12:47 2023 +0100 gas/testsuite: adjust a test for case insensitive file systems =20 When dealing with case insensitive file systems, ".file line.s" and ".file Line.s" are identical and thus gas won't change the current input file. However, in line.l test, it's expecting to trigger an input file switch. As the second filename doesn't matter in it, change it to fit for those file systems. =20 gas/ChangeLog: =20 * testsuite/gas/elf/line.l: Change Line.s to Line2.s. * testsuite/gas/elf/line.s: Adjust output. Diff: --- gas/testsuite/gas/elf/line.l | 12 ++++++------ gas/testsuite/gas/elf/line.s | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gas/testsuite/gas/elf/line.l b/gas/testsuite/gas/elf/line.l index 6fde80b7a85..37384d7d923 100644 --- a/gas/testsuite/gas/elf/line.l +++ b/gas/testsuite/gas/elf/line.l @@ -15,17 +15,17 @@ line\.s:[0-9]*23: Info: .* line\.s:4: Warning: m1/2: XYZ line\.s:[0-9]*23: Info: .* line\.s:[0-9]*24: Warning: \.warning .* -Line\.s:10: Warning: m2/1: 987 +Line2\.s:10: Warning: m2/1: 987 line\.s:[0-9]*26: Info: .* -Line\.s:12: Warning: m2/2: 987 +Line2\.s:12: Warning: m2/2: 987 line\.s:[0-9]*26: Info: .* -Line\.s:10: Warning: m2/1: zyx +Line2\.s:10: Warning: m2/1: zyx line\.s:[0-9]*27: Info: .* -Line\.s:12: Warning: m2/2: zyx +Line2\.s:12: Warning: m2/2: zyx line\.s:[0-9]*27: Info: .* -Line\.s:10: Warning: m2/1: CBA +Line2\.s:10: Warning: m2/1: CBA line\.s:[0-9]*28: Info: .* -Line\.s:12: Warning: m2/2: CBA +Line2\.s:12: Warning: m2/2: CBA line\.s:[0-9]*28: Info: .* line\.s:[0-9]*29: Warning: \.warning .* line\.s:[0-9]*35: Warning: irp/1: 123 diff --git a/gas/testsuite/gas/elf/line.s b/gas/testsuite/gas/elf/line.s index 2190cc3c225..2b51d50a125 100644 --- a/gas/testsuite/gas/elf/line.s +++ b/gas/testsuite/gas/elf/line.s @@ -5,7 +5,7 @@ .endm =20 .macro m2 args:vararg - .file "Line.s" + .file "Line2.s" .line 9 .warning "m2/1: \args" .nop