aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-07-13 19:57:28 +0930
committerAlan Modra <amodra@gmail.com>2020-07-13 22:03:59 +0930
commit7a34d0ea4ddd5ff205637fbad5faf2e977921720 (patch)
tree9d1b12b177bba1e5536986239f8f795f8ef0e2b8 /binutils
parent8884c29c0f5df9f2ef201f1bc4ba574e7468eb4f (diff)
downloadgdb-7a34d0ea4ddd5ff205637fbad5faf2e977921720.zip
gdb-7a34d0ea4ddd5ff205637fbad5faf2e977921720.tar.gz
gdb-7a34d0ea4ddd5ff205637fbad5faf2e977921720.tar.bz2
x86_64-cygwin tests
Tests just having "xfail: x86_64-*-cygwin" aren't good, since presumably if a test fails on x86_64-cygwin then it also fails on x86_64-*-pe* and x86_64-*-mingw*. binutils/ * testsuite/lib/binutils-common.exp (is_pecoff_format): Accept optional machine-os arg. ld/ * testsuite/ld-scripts/default-script1.d: Don't skip, xfail using is_pecoff_format. * testsuite/ld-scripts/default-script2.d: Likewise. * testsuite/ld-scripts/default-script3.d: Likewise. * testsuite/ld-scripts/default-script4.d: Likewise. * testsuite/ld-scripts/pr20302.d: Remove x86_64-*-cygwin from notarget. * testsuite/ld-scripts/provide-6.d: Remove x86_64-*-cygwin from xfail. * testsuite/ld-scripts/provide-8.d: Likewise.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/testsuite/lib/binutils-common.exp23
2 files changed, 19 insertions, 9 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 14917c7..b30bbc4 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2020-07-13 Alan Modra <amodra@gmail.com>
+
+ * testsuite/lib/binutils-common.exp (is_pecoff_format): Accept
+ optional machine-os arg.
+
2020-07-11 H.J. Lu <hongjiu.lu@intel.com>
* readelf.c (decode_x86_feature_2): Handle
diff --git a/binutils/testsuite/lib/binutils-common.exp b/binutils/testsuite/lib/binutils-common.exp
index 948b910..345840c 100644
--- a/binutils/testsuite/lib/binutils-common.exp
+++ b/binutils/testsuite/lib/binutils-common.exp
@@ -94,15 +94,20 @@ proc is_aout_format {} {
# True if the object format is known to be PE COFF.
#
-proc is_pecoff_format {} {
- if { [istarget *-*-beospe*]
- || [istarget *-*-cegcc*]
- || [istarget *-*-cygwin*]
- || [istarget *-*-interix*]
- || [istarget *-*-mingw*]
- || [istarget *-*-netbsdpe*]
- || [istarget *-*-pe*]
- || [istarget *-*-winnt*] } {
+proc is_pecoff_format args {
+ if { [llength $args] == 1 } {
+ set m_os [lindex $args 0]
+ } else {
+ set m_os *-*
+ }
+ if { [istarget $m_os-beospe*]
+ || [istarget $m_os-cegcc*]
+ || [istarget $m_os-cygwin*]
+ || [istarget $m_os-interix*]
+ || [istarget $m_os-mingw*]
+ || [istarget $m_os-netbsdpe*]
+ || [istarget $m_os-pe*]
+ || [istarget $m_os-winnt*] } {
return 1
}
return 0