This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB 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] Tweak tests for target with 4-byte doubles


> 2002-05-23  Michael Snyder  <msnyder@redhat.com>
> 
>     * gdb.base/all-bin.exp: Allow for reduced floating point precision.
>     * gdb.base/call-rt-st.exp: Ditto.
> 
> Index: all-bin.exp
> ===================================================================
> RCS file: /cvs/src/src/gdb/testsuite/gdb.base/all-bin.exp,v
> retrieving revision 1.2
> diff -p -r1.2 all-bin.exp
> *** all-bin.exp    6 Mar 2001 08:21:50 -0000    1.2
> --- all-bin.exp    23 May 2002 15:40:03 -0000
> *************** send_gdb "print v_int+v_double\n"
> *** 189,198 ****
>   gdb_expect {
>       -re ".*206.56565.*$gdb_prompt $" {
>           pass "print value of v_int+v_double"
> !       }
>       -re ".*$gdb_prompt $" { fail "print value of v_int+v_double" }
> !     timeout           { fail "(timeout) print value of v_int+" }    !   }
>  
> Michael,
> 
> Last time this was raised it was concluded that GDB shouldn't be testing the FPU here.  Rather than adding d10v specific hacks, reduce the precision of the value being checked.

Hmm, to expand a little:

 >       -re ".*206.56565.*$gdb_prompt $" {

to

	-re ".*206.56\[0-9\]*

so it isn't assuming a specific underlying floating-point representation.

enjoy,
Andrew



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