Allow mixing target and not-target directives
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 11 May 2015 19:29:27 +0000 (12:29 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 11 May 2015 19:29:27 +0000 (12:29 -0700)
Mixing target and not-target directives can be used to run for x86_64-*-*
target while skipping x86_64-*-gnux32 target.  This patch allows mixing
target and not-target directives. It is used to skip elfedit-1 for
x86_64-*-gnux32.

* binutils-all/elfedit-1.d: Skip x86_64-*-gnux32.
* lib/utils-lib.exp (run_dump_test): Allow mixing target and
not-target directives.

binutils/testsuite/ChangeLog
binutils/testsuite/binutils-all/elfedit-1.d
binutils/testsuite/lib/utils-lib.exp

index 43461adf08ebe4a2d6e48eb5404352120dc817d4..22bd68011b558b4fe8171509bcf34776635d70c5 100644 (file)
@@ -1,3 +1,9 @@
+2015-05-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * binutils-all/elfedit-1.d: Skip x86_64-*-gnux32.
+       * lib/utils-lib.exp (run_dump_test): Allow mixing target and
+       not-target directives.
+
 2015-05-11  H.J. Lu  <hongjiu.lu@intel.com>
 
        * binutils-all/objdump.exp (cpus_expected): Append iamcu.
index 700d54281b93b0a4288dff10054a7a479aea473b..7eb8d6a6e2edbb6ecc0b38da678fd6f66534a654 100644 (file)
@@ -4,6 +4,7 @@
 #readelf: -h
 #name: Update ELF header 1
 #target: x86_64-*-*
+#not-target: x86_64-*-gnux32
 
 #...
 ELF Header:
index b366b639ff635160c031f7d310ed6fd84e524f0f..f87b39061f4a7d3d6f4a4313d0072fec9a847974 100644 (file)
@@ -412,11 +412,6 @@ proc run_dump_test { name {extra_options {}} } {
        if {$skip} { return }
     }
     if { $opts(target) != "" } then {
-       if { $opts(not-target) != "" } then {
-           perror "$testname: mixing target and not-target directives is invalid"
-           unresolved $testname
-           return
-       }
        set skip 1
        foreach glob $opts(target) {
            if {[istarget $glob]} {
This page took 0.03998 seconds and 4 git commands to generate.