[binutils-gdb] gas/testsuite: adjust a test for case insensitive file systems

Cl?ment Chigot helflym@sourceware.org
Tue Feb 21 09:48:08 GMT 2023


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1fafeaac8503eea2f61c3a35f0eef183b7e7cc65

commit 1fafeaac8503eea2f61c3a35f0eef183b7e7cc65
Author: Clément Chigot <chigot@adacore.com>
Date:   Wed Jan 11 15:12:47 2023 +0100

    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:
---
 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
 
 	.macro m2 args:vararg
-	.file "Line.s"
+	.file "Line2.s"
 	.line 9
 	.warning "m2/1: \args"
 	.nop


More information about the Binutils-cvs mailing list