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]
Other format: [Raw text]

Re: PATCH: Set XFAIL for non PE targets


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


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