[PATCH]: testsuite tweak for Sparclet

Michael Snyder msnyder@cygnus.com
Thu Apr 27 08:45:00 GMT 2000


Fernando Nasser wrote in message < 39085D32.7D551EC5@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?

I'm fairly sure it is not the only case.  Older ports especially would be
suspect.

> If there are other
>platforms we can make a genric tests instead.

I'm sure we can, but I don't have time right now...
Seems like it would be fairly icky anyway.  Would you download a
"hello world" program just to see if the output appeared?  That would
sure slow down the testsuite...
>
>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




More information about the Gdb-patches mailing list