This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] dejagnu lib/framework.exp
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: Re: [PATCH] dejagnu lib/framework.exp
- From: Jimmy Guo <guo at cup dot hp dot com>
- Date: Wed, 2 Aug 2000 15:07:32 -0700 (PDT)
FYI I've commited the patch.
On Fri, 28 Jul 2000, Jimmy Guo wrote:
> ... compiler_conditional_xfail_data was made a global in
>'proc fail' ... to be consistent 'proc pass' needs to do the same thing
>as well. ...
>
>
>Fri Jul 28 13:39:27 Jimmy Guo <guo@cup.hp.com>
>
> * lib/framework.exp (pass): make compiler_conditional_xfail_data
> a global, corresponding to a recent change to 'proc fail'.
>
>Index: lib/framework.exp
>/usr/local/bin/diff -c -L lib/framework.exp lib/framework.exp@@/main/cygnus/5 lib/framework.exp
>*** lib/framework.exp
>--- lib/framework.exp Fri Jul 28 13:38:25 2000
>***************
>*** 672,685 ****
> # Record that a test has passed
> #
> proc pass { message } {
>! global xfail_flag
>
> # if we have a conditional xfail setup, then see if our compiler flags match
>! if [uplevel {info exists compiler_conditional_xfail_data}] {
>! if [uplevel {check_conditional_xfail $compiler_conditional_xfail_data}] {
> set xfail_flag 1
> }
>! uplevel {unset compiler_conditional_xfail_data}
> }
>
> if $xfail_flag {
>--- 672,685 ----
> # Record that a test has passed
> #
> proc pass { message } {
>! global xfail_flag compiler_conditional_xfail_data
>
> # if we have a conditional xfail setup, then see if our compiler flags match
>! if [ info exists compiler_conditional_xfail_data ] {
>! if [check_conditional_xfail $compiler_conditional_xfail_data] {
> set xfail_flag 1
> }
>! unset compiler_conditional_xfail_data
> }
>
> if $xfail_flag {