]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gas testsuite tidy
authorAlan Modra <amodra@gmail.com>
Mon, 25 Jan 2021 12:23:31 +0000 (22:53 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 26 Jan 2021 10:24:43 +0000 (20:54 +1030)
This replaces skip and notarget in a number of gas tests with xfail,
the idea being that running tests might expose segmentation faults or
other serious errors even when we don't expect a test to pass.  Doing
so showed a number of cases where tests now pass, which is another
reason to avoid profligate use of notarget and skip.

* testsuite/gas/all/local-label-overflow.d: Use xfail rather than
notarget all except hppa.  Comment.
* testsuite/gas/all/sleb128-2.d: Use xfail rather than notarget.
* testsuite/gas/all/sleb128-4.d: Likewise.  Don't skip msp430.
* testsuite/gas/all/sleb128-5.d: Use xfail rather than notarget.
* testsuite/gas/all/sleb128-7.d: Likewise.
* testsuite/gas/all/sleb128-9.d: Likewise.
* testsuite/gas/elf/bignums.d: Likewise.
* testsuite/gas/elf/group0c.d: Likewise.
* testsuite/gas/elf/group1a.d: Likewise.
* testsuite/gas/elf/section-symbol-redef.d: Likewise.
* testsuite/gas/elf/section15.d: Likewise.
* testsuite/gas/elf/section4.d: Likewise.
* testsuite/gas/elf/section7.d: Likewise.
* testsuite/gas/macros/irp.d: Likewise.
* testsuite/gas/macros/repeat.d: Likewise.
* testsuite/gas/macros/rept.d: Likewise.
* testsuite/gas/macros/test2.d: Likewise.
* testsuite/gas/macros/vararg.d: Likewise.
* testsuite/gas/all/string.d: Use xfail rather than skip.
* testsuite/gas/elf/missing-build-notes.d: Likewise.
* testsuite/gas/elf/section0.d: Likewise.
* testsuite/gas/elf/section1.d: Likewise.
* testsuite/gas/elf/section10.d: Likewise.
* testsuite/gas/elf/section11.d: Likewise.
* testsuite/gas/elf/section6.d: Likewise.
* testsuite/gas/elf/symtab.d: Use xfail rather than skip, adjust hppa.
* testsuite/gas/elf/symtab.s: Don't start directives in first column.
* testsuite/gas/macros/test3.d: Don't notarget nds32.

29 files changed:
gas/ChangeLog
gas/testsuite/gas/all/local-label-overflow.d
gas/testsuite/gas/all/sleb128-2.d
gas/testsuite/gas/all/sleb128-4.d
gas/testsuite/gas/all/sleb128-5.d
gas/testsuite/gas/all/sleb128-7.d
gas/testsuite/gas/all/sleb128-9.d
gas/testsuite/gas/all/string.d
gas/testsuite/gas/elf/bignums.d
gas/testsuite/gas/elf/group0c.d
gas/testsuite/gas/elf/group1a.d
gas/testsuite/gas/elf/missing-build-notes.d
gas/testsuite/gas/elf/section-symbol-redef.d
gas/testsuite/gas/elf/section0.d
gas/testsuite/gas/elf/section1.d
gas/testsuite/gas/elf/section10.d
gas/testsuite/gas/elf/section11.d
gas/testsuite/gas/elf/section15.d
gas/testsuite/gas/elf/section4.d
gas/testsuite/gas/elf/section6.d
gas/testsuite/gas/elf/section7.d
gas/testsuite/gas/elf/symtab.d
gas/testsuite/gas/elf/symtab.s
gas/testsuite/gas/macros/irp.d
gas/testsuite/gas/macros/repeat.d
gas/testsuite/gas/macros/rept.d
gas/testsuite/gas/macros/test2.d
gas/testsuite/gas/macros/test3.d
gas/testsuite/gas/macros/vararg.d

index 767688c05afa6d1ecc832e4e3ac8619e0a1f0040..e76a5bf531a36d7808c545e0d02e055527715754 100644 (file)
@@ -1,3 +1,35 @@
+2021-01-26  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/gas/all/local-label-overflow.d: Use xfail rather than
+       notarget all except hppa.  Comment.
+       * testsuite/gas/all/sleb128-2.d: Use xfail rather than notarget.
+       * testsuite/gas/all/sleb128-4.d: Likewise.  Don't skip msp430.
+       * testsuite/gas/all/sleb128-5.d: Use xfail rather than notarget.
+       * testsuite/gas/all/sleb128-7.d: Likewise.
+       * testsuite/gas/all/sleb128-9.d: Likewise.
+       * testsuite/gas/elf/bignums.d: Likewise.
+       * testsuite/gas/elf/group0c.d: Likewise.
+       * testsuite/gas/elf/group1a.d: Likewise.
+       * testsuite/gas/elf/section-symbol-redef.d: Likewise.
+       * testsuite/gas/elf/section15.d: Likewise.
+       * testsuite/gas/elf/section4.d: Likewise.
+       * testsuite/gas/elf/section7.d: Likewise.
+       * testsuite/gas/macros/irp.d: Likewise.
+       * testsuite/gas/macros/repeat.d: Likewise.
+       * testsuite/gas/macros/rept.d: Likewise.
+       * testsuite/gas/macros/test2.d: Likewise.
+       * testsuite/gas/macros/vararg.d: Likewise.
+       * testsuite/gas/all/string.d: Use xfail rather than skip.
+       * testsuite/gas/elf/missing-build-notes.d: Likewise.
+       * testsuite/gas/elf/section0.d: Likewise.
+       * testsuite/gas/elf/section1.d: Likewise.
+       * testsuite/gas/elf/section10.d: Likewise.
+       * testsuite/gas/elf/section11.d: Likewise.
+       * testsuite/gas/elf/section6.d: Likewise.
+       * testsuite/gas/elf/symtab.d: Use xfail rather than skip, adjust hppa.
+       * testsuite/gas/elf/symtab.s: Don't start directives in first column.
+       * testsuite/gas/macros/test3.d: Don't notarget nds32.
+
 2021-01-26  Alan Modra  <amodra@gmail.com>
 
        * testsuite/gas/all/byte.d,
index 956025c57679f0b281d296db47e8870ffb7a770d..e0895daa3e517115457b95c0a90581f0998d4e6e 100644 (file)
@@ -1,3 +1,6 @@
 #source: local-label-overflow.s
 #error_output: local-label-overflow.l
-#notarget: hppa*-*-* ia64-*-vms mmix-*-* sh-*-pe
+# Some hppa targets support local labels, others don't. It's a pain to
+# enumerate all the combinations so just don't run the test for hppa.
+#notarget: hppa*-*-*
+#xfail: ia64-*-vms mmix-*-* sh-*-pe
index df24fafb5e9515603f57485cada78a0ab592823a..da335e57312c26d73774ca5e16f3e7f7048d3a38 100644 (file)
@@ -3,7 +3,7 @@
 # RISC-V doesn't support .sleb operands that are the difference of two symbols
 # because symbol values are not known until after linker relaxation has been
 # performed.
-#notarget : riscv*-*-*
+#xfail: riscv*-*-*
 
 .*: .*
 
index a0207411050bf88c603d92302c1fb7317fbae372..4cdfe9c484bb1445ab3514f608fbde00e6827321 100644 (file)
@@ -1,10 +1,9 @@
 #objdump : -s -j .data -j "\$DATA\$"
 #name : .sleb128 tests (4)
-#skip: msp430*-*-*
 # RISC-V doesn't support .sleb operands that are the difference of two symbols
 # because symbol values are not known until after linker relaxation has been
 # performed.
-#notarget: riscv*-*-*
+#xfail: riscv*-*-*
 
 .*: .*
 
index d6d4e376668cdb22964859ddceb0678291c098e9..3ee3cea8717ae6dc03ea14b9a07af35ad00cab41 100644 (file)
@@ -3,7 +3,7 @@
 # RISC-V doesn't support .sleb operands that are the difference of two symbols
 # because symbol values are not known until after linker relaxation has been
 # performed.
-#notarget : riscv*-*-*
+#xfail: riscv*-*-*
 
 .*: .*
 
index 609088bdddd5f0aa214b7029aa146edc8d9f1767..8a4258bc1db3af018325a3d96fe242c340380781 100644 (file)
@@ -3,7 +3,7 @@
 # RISC-V doesn't support .sleb operands that are the difference of two symbols
 # because symbol values are not known until after linker relaxation has been
 # performed.
-#notarget: riscv*-*-*
+#xfail: riscv*-*-*
 
 .*: .*
 
index 13d30d1b9f0867c4837677efa63723e290b95db1..abfe2f3f2b2151d08a579ec04a86953d7b9acddb 100644 (file)
@@ -1,5 +1,5 @@
 #name: undefined symbols in sleb128 directive
 #source: sleb128-9.s
 #error_output: sleb128-9.l
-#notarget: riscv*-*
+#xfail: riscv*-*
 
index 5408ab03ff5e5c8a94429f61b38e23b5f5123f06..ada28e2534bbe9204911f759f1f8062fc326765d 100644 (file)
@@ -1,6 +1,6 @@
 #objdump : -s -j .data -j "\$DATA\$"
 #name : .strings tests
-#skip: tic4x-*
+#xfail: tic4x-*
 
 .*: .*
 
index 1cc50aaea503b2de574f632c604dd95bfbf56d0d..3c05470f7086cd0853b05e3c73ed55102437d533 100644 (file)
@@ -1,6 +1,6 @@
 #readelf: -x .data
 #name: bignum byte values
-#notarget: rx-*
+#xfail: rx-*
 # The RX target sometimes calls its data section D_1.
 # 
 # Test that 8-bit and 16-bit constants can be specified via bignums.
index 9564f65cedc0fae096e98d250cee0c8e25b9ba72..ffb129a6ca7dc28cef87dea8aa8629c2a56890d7 100644 (file)
@@ -1,7 +1,7 @@
 #readelf: -sW
 #name: group section name
 #source: group0.s
-#notarget: *-*-solaris*
+#xfail: *-*-solaris*
 
 #...
 .*NOTYPE[      ]+LOCAL[        ]+DEFAULT[      ]+[0-9]+[       ]+\.foo_group
index d5f7fecd88c5d620615327c7b0ea6f26d7def3eb..b40d5ddbf90ad62a7befd1a689f70b7779bb3d9e 100644 (file)
@@ -2,7 +2,7 @@
 #name: group section with multiple sections of same name (using readelf -SW)
 #source: group1.s
 # The RX port uses non-standard section names.
-#notarget: rx-*
+#xfail: rx-*
 
 #...
 [      ]*\[.*\][       ]+\.group[      ]+GROUP.*
index 1d3efbbba05ea19bc28e0a7c285f80367fc3628b..0cfb11024ddf53456bd597c7f009f5f8851db352 100644 (file)
@@ -1,6 +1,6 @@
 # as: --generate-missing-build-notes=yes
 # objdump: -r
-#skip: mips*-*-openbsd
+#xfail: mips*-*-openbsd
 
 # Check that the relocations are for increasing addresses...
 
index 2ce245246f811f61dbc9acdcec7af85fda76c80a..149e8f9de64f70907dac89a1fe8e5804d9855701 100644 (file)
@@ -1,5 +1,5 @@
 #readelf: -x myseg
-#notarget: bfin-*-* h8300-*
+#xfail: bfin-*-* h8300-*
 
 Hex dump of section .*:
   0x0+ 2a\s+\*
index be1d547d5ed66e73df9417b53afdf2f1991472a9..0d9cb177d571d1ad9832634bb20922704c559b73 100644 (file)
@@ -2,7 +2,7 @@
 #name: elf section0
 # The h8300 port issues a warning message for
 # new sections created without atrributes.
-#skip: h8300-*
+#xfail: h8300-*
 
 .*: +file format .*
 
index b02a9e427e9d05c0c6a4b6fa889ecd40e226d7ca..f0c2eb501af61c73b409132271574fabac67e788 100644 (file)
@@ -2,7 +2,7 @@
 #name: elf section1
 # The h8300 port issues a warning message for
 # new sections created without atrributes.
-#skip: h8300-*
+#xfail: h8300-*
 
 .*: +file format .*
 
index 6aa7b088b1b9c4f38d3890781b6a15b1c9083e38..d51bd4e36e56ca9c6a7a1eab1cec853d87bf194c 100644 (file)
@@ -1,7 +1,7 @@
 #readelf: -N --wide
 #name: numeric section flags and types
 # The RX port annoyingly reorders the sections so that they do not match the sequence expected below.
-#skip: rx-*-*
+#xfail: rx-*-*
 
 #...
 [      ]*\[.*\][       ]+.text
index 4cada2a7fee830760af2b4ff6556f48a2e055d52..427aea67032927de821913f8bb3c47ddb86b4ae8 100644 (file)
@@ -2,10 +2,10 @@
 #readelf: -S --wide
 #name: Disabling section padding
 # The RX port uses non standard section names.
-#skip: rx-*-*
+#xfail: rx-*-*
 # RISC-V handles alignment via linker relaxation, so object files don't have
 # the expected alignment.
-#notarget: riscv*-*-*
+#xfail: riscv*-*-*
 
 #...
   \[ .\] .text[        ]+PROGBITS[     ]+0+00 0+[0-9a-f]+ 0+0(1|4|5) 00  AX  0   0 16
index a7cda1394f4d56b27b312e2720057234a9e8d903..c576e44abbc652c03c5e785d9acaf0c9ddcd5a7f 100644 (file)
@@ -2,7 +2,7 @@
 #name: elf section15
 # .pushsection always creates the named section, but the
 # test harness translates ".text" into "P" for the RX...
-#notarget: rx-*
+#xfail: rx-*
 
 .*: +file format .*
 
index fbeb0c7d595dc537539d81c893419a68995cff02..bb13d2b7c60d8fa402dfda966cc1680f046ba68b 100644 (file)
@@ -1,7 +1,7 @@
 #readelf: --sections
 #name: label arithmetic with multiple same-name sections
 # The RX port uses non-standard section names.
-#notarget: rx-*
+#xfail: rx-*
 
 #...
 [      ]*\[.*\][       ]+\.group[      ]+GROUP.*
index c42d95c2aa3b69eb7d86e425a91bf61bfcd9e74f..4e5c2bffa08ab94e3a0b22f9e7872c71bb2cb2f6 100644 (file)
@@ -2,7 +2,7 @@
 #name: elf section6
 # The h8300 port issues a warning message for
 # new sections created without atrributes.
-#skip: h8300-*
+#xfail: h8300-*
 
 .*: +file format .*
 
index c424a0fdfbddb837aaf39a8ad6fb7e64c1afd76c..558500c97003d8ac217f1b4143e38c7aa14a4575 100644 (file)
@@ -2,7 +2,7 @@
 #name: elf section7
 # .pushsection always creates the named section, but the
 # test harness translates ".text" into "P" for the RX...
-#notarget: rx-*
+#xfail: rx-*
 
 .*: +file format .*
 
index ce8d165072f662e974fde62d6d7d9b0fa0d83ac6..68e5e7ca33e21668b2735f200bcf0621b1ace1e0 100644 (file)
@@ -1,6 +1,6 @@
 # The Alpha has its own version of .set.
-# The HPPA does not output non-global absolute symbols.
-#skip: alpha-*-* hppa*-*-*
+# hppa SOM does not output non-global absolute symbols.
+#xfail: alpha-*-* [is_som_format]
 #readelf: -s
 #name: .set with expression
 
index 9219cf88098dc95866cb2c078d316dffe5a89360..235cf8db5bb4756a5e7f948df15c3cdf11b9353f 100644 (file)
@@ -1,4 +1,4 @@
-.text
+       .text
        .global foo
 foo:
        .set    shift, 32
index 4b69658d573f2c89deb253a2ba8be261d47f46f3..fd98b60cc804b0ee31fe0ca89cd1861514b65ce6 100644 (file)
@@ -1,7 +1,7 @@
 #objdump: -r
 #name: macro irp
 #darwin (mach-o) reverses relocs.
-#notarget: *-*-darwin* nds32*-*-*
+#xfail: *-*-darwin* nds32*-*-*
 
 .*: +file format .*
 
index 68f2db9ade8d1fdeb1b33abd4be9a9a901f48490..8f3bdcf535c6681e083fa481c7b6dddc6e88ef52 100644 (file)
@@ -1,7 +1,7 @@
 #objdump: -r
 #name: nested irp/irpc/rept
 # darwin (mach-o) reverse relocs.
-#notarget: *-*-darwin*
+#xfail: *-*-darwin*
 
 .*: +file format .*
 
index 2fb4465ccb3ecc7e09695cf25d42361cf5df743d..73223490e4fc2993428899ce39f73b64cc9bc99f 100644 (file)
@@ -1,7 +1,7 @@
 #objdump: -r
 #name: macro rept
 #darwin (mach-o) reverses relocs.
-#notarget: *-*-darwin* nds32*-*-*
+#xfail: *-*-darwin* nds32*-*-*
 
 .*: +file format .*
 
index adb0eed810abd43edbe63cd691ed874b5489af22..08ba703ddd5f163e4d36286332411cd5f30f3817 100644 (file)
@@ -1,7 +1,7 @@
 #objdump: -r
 #name: macro test 2
 # darwin(mach-o) reverses the order of relocs.
-#notarget: *-*-darwin*
+#xfail: *-*-darwin*
 
 .*: +file format .*
 
index 6a1df31efec4fef97c1c4a3f5594c1804ba56f4e..054cf23307435168068387c9cdce5fd4fc93c750 100644 (file)
@@ -1,6 +1,5 @@
 #objdump: -r
 #name: macro test 3
-#notarget: nds32*-*-*
 
 .*: +file format .*
 
index ff633bd33e8fb6b9e583720a099790cc5c9f0893..f566eae4356ff5d414c73c68bd330e4800110be6 100644 (file)
@@ -1,7 +1,7 @@
 #objdump: -r
 #name: macro vararg
 # darwin (mach-o) reverses relocs.
-#notarget: *-*-darwin*
+#xfail: *-*-darwin*
 
 .*: +file format .*