This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
[PATCH]: testsuite tweak for Sparclet
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: [PATCH]: testsuite tweak for Sparclet
- From: msnyder at cygnus dot com
- Date: Wed, 26 Apr 2000 17:38:58 -0700 (PDT)
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.
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."
}