This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Why run the windres test on Linux?


On Tue, Jul 24, 2001 at 03:06:00PM -0400, DJ Delorie wrote:
> 
> > Here is a patch. Is this OK?
> 
> Sure.

I checked in a slightly modified version enclosed here.

Thanaks.


H.J.
---
2001-07-24  H.J. Lu  <hjl@gnu.org>

	* binutils-all/windres/windres.exp: Set xfail on none-ix86/pe
	targets.

Index: binutils-all/windres/windres.exp
===================================================================
RCS file: /work/cvs/gnu/binutils/binutils/testsuite/binutils-all/windres/windres.exp,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 windres.exp
--- binutils-all/windres/windres.exp	2001/07/23 22:05:25	1.1.1.1
+++ binutils-all/windres/windres.exp	2001/07/24 19:13:37
@@ -23,6 +23,14 @@ if {![istarget "i*86-*-*"]} {
     return
 }
 
+if {![istarget "i*86-*-*pe*"] \
+    && ![istarget "i*86-*-cygwin*"] \
+    && ![istarget "i*86-*-mingw32*"] } {
+    set target_xfail "yes"
+} else {
+    set target_xfail "no"
+}
+
 if {![info exists WINDRES]} then {
     return
 }
@@ -35,6 +43,7 @@ set wr "$WINDRES --include-dir $srcdir/$
 
 if [file exists "$srcdir/../../winsup/w32api/include"] {
     set wr "$wr --include-dir $srcdir/../../winsup/w32api/include"
+    set target_xfail "no"
 } else {
     send_log "\nWarning: Assuming windres can find the win32 headers\n\n"
 }
@@ -68,6 +77,10 @@ foreach res $res_list {
 	}
     }
 
+    if { "$broot" != "bmpalign" && "$target_xfail" == "yes" } {
+	setup_xfail *-*
+    }
+
     verbose "$wr -I rc -O res $res tmpdir/$broot.res" 1
     catch "exec $wr -I rc -O res $res tmpdir/$broot.res" err
 
@@ -96,6 +109,10 @@ foreach res $res_list {
     }
     if { $done != 0 } {
 	continue;
+    }
+
+    if { "$target_xfail" == "yes" } {
+	setup_xfail *-*
     }
 
     verbose "$OBJDUMP -b binary -s tmpdir/$broot.res > tmpdir/$broot.dump" 1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]