This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: Set XFAIL for non PE targets
- From: "Aaron W. LaFramboise" <aaron98wiridge9 at aaronwl dot com>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 26 Oct 2004 20:40:19 -0500
- Subject: Re: PATCH: Set XFAIL for non PE targets
- References: <20041026232647.GA25570@lucon.org>
H. J. Lu wrote:
> +if { "$target_xfail" == "yes" } {
> + setup_xfail *-*
> +}
> +
Theres some code near the top of the file:
> 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"
> }
Does the variable target_xfail do anything by itself? Could `set
target_xfail "yes"' just be changed to setup_xfail?
Also, the first line just returns if the target isn't i386. Is this
right? Should it call unsupported first?
In fact, these tests really have nothing to do with i386 any more than
anything else; they're tests for PE targets. In other words, i386-elf
shouldn't be xfailed: it should just be unsupported, the same as
arm-elf. And, for that matter, all of *-pe, such as arm-pe, should
really be xfailed, because those targets really should be able to handle
all dlltool tests.
Sorry if these are silly questions; I am new to dejagnu.
Aaron W. LaFramboise