This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: [PATCH]: testsuite tweak for Sparclet
- To: msnyder at cygnus dot com
- Subject: Re: [PATCH]: testsuite tweak for Sparclet
- From: Fernando Nasser <fnasser at cygnus dot com>
- Date: Thu, 27 Apr 2000 15:30:58 +0000
- CC: gdb-patches at sourceware dot cygnus dot com
- Organization: Cygnus Solutions (a Red Hat company) - Toronto
- References: <200004270038.RAA06208@seadog.cygnus.com>
msnyder@cygnus.com wrote:
>
> The sparclet remote stub does not support stdio, so these tests,
> which depend on parsing the output of the program, will never run.
> There are probably others with the same problem -- these are just
> the ones I happened to catch.
>
Michael, do you know if Sparclet is the only case where stdio is not supported? If there are other
platforms we can make a genric tests instead.
Otherwise just check it in.
> 2000-04-26 Michael Snyder <msnyder@seadog.cygnus.com>
>
> * gdb.base/call-ar-st.exp: Bail out if target is sparclet.
> This test depends on parsing the printf output from the target.
> Since the sparclet stub doesn't do stdio, this will never work.
> * gdb.base/call-rt-st.exp: ditto.
>
> Index: gdb.base/call-ar-st.exp
> ===================================================================
> RCS file: /cvs/src/src/gdb/testsuite/gdb.base/call-ar-st.exp,v
> retrieving revision 1.3
> diff -p -r1.3 call-ar-st.exp
> *** call-ar-st.exp 2000/04/08 05:10:43 1.3
> --- call-ar-st.exp 2000/04/27 00:37:13
> *************** set testfile "call-ar-st"
> *** 32,37 ****
> --- 32,40 ----
> set srcfile ${testfile}.c
> set binfile ${objdir}/${subdir}/${testfile}
>
> + if { [istarget "sparclet-*-*"] } {
> + return 0;
> + }
>
> if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
> gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
> *************** gdb_expect {
> *** 567,571 ****
> }
>
> return
>
> - ~
> --- 570,574 ----
> }
>
> return
> +
>
> Index: gdb.base/call-rt-st.exp
> ===================================================================
> RCS file: /cvs/src/src/gdb/testsuite/gdb.base/call-rt-st.exp,v
> retrieving revision 1.1.1.3
> diff -p -r1.1.1.3 call-rt-st.exp
> *** call-rt-st.exp 1999/06/28 16:02:48 1.1.1.3
> --- call-rt-st.exp 2000/04/27 00:37:13
> *************** set srcfile ${testfile}.c
> *** 36,41 ****
> --- 36,45 ----
> set binfile ${objdir}/${subdir}/${testfile}
>
>
> + if { [istarget "sparclet-*-*"] } {
> + return 0;
> + }
> +
> if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-w}] != "" } {
> gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
> }
--
Fernando Nasser
Cygnus Solutions (a Red Hat company) E-Mail: fnasser@cygnus.com
2323 Yonge Street, Suite #300 Tel: 416-482-2661 ext. 311
Toronto, Ontario M4P 2C9 Fax: 416-482-6299