From: Clément Chigot Date: Wed, 11 Jan 2023 14:12:47 +0000 (+0100) Subject: gas/testsuite: adjust a test for case insensitive file systems X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1fafeaac8503eea2f61c3a35f0eef183b7e7cc65;p=binutils-gdb.git gas/testsuite: adjust a test for case insensitive file systems 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. gas/ChangeLog: * testsuite/gas/elf/line.l: Change Line.s to Line2.s. * testsuite/gas/elf/line.s: Adjust output. --- 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 .macro m2 args:vararg - .file "Line.s" + .file "Line2.s" .line 9 .warning "m2/1: \args" .nop