This is the mail archive of the gdb-patches@sourceware.org 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]

[committed] Tidy SPU test suite runs


Hello,

two test cases were generating compiler error messages while 
running the test suite on spu:

- gdb.base/watch_thread_num.exp because spu does not have pthreads
  Fixed by using gdb_compile_pthreads as other threads tests do

- gdb.cp/mb-templates.exp because the executable exceeds LS size
  Skip the test on spu (like a couple of others are already skipped)

Tested on spu-elf and powerpc-linux.
Committed to mainline.

Bye,
Ulrich


ChangeLog:

	* gdb.base/watch_thread_num.exp: Use gdb_compile_pthreads.

	* gdb.cp/mb-templates.exp: Skip test on spu*-*-* targets.


diff -urNp gdb-orig/gdb/testsuite/gdb.base/watch_thread_num.exp gdb-head/gdb/testsuite/gdb.base/watch_thread_num.exp
--- gdb-orig/gdb/testsuite/gdb.base/watch_thread_num.exp	2008-01-01 23:53:19.000000000 +0100
+++ gdb-head/gdb/testsuite/gdb.base/watch_thread_num.exp	2008-04-05 00:50:19.911257790 +0200
@@ -33,9 +33,8 @@ if [get_compiler_info ${binfile}] {
     return -1
 }
 
-if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug libs=-lpthread}] != "" } {
-     untested watch_thread_num.exp
-     return -1
+if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
+    return -1
 }
 
 gdb_exit
diff -urNp gdb-orig/gdb/testsuite/gdb.cp/mb-templates.exp gdb-head/gdb/testsuite/gdb.cp/mb-templates.exp
--- gdb-orig/gdb/testsuite/gdb.cp/mb-templates.exp	2008-01-01 23:53:19.000000000 +0100
+++ gdb-head/gdb/testsuite/gdb.cp/mb-templates.exp	2008-04-05 00:18:10.770117575 +0200
@@ -22,6 +22,11 @@ if $tracelevel then {
 
 if { [skip_cplus_tests] } { continue }
 
+# On SPU this test fails because the executable exceeds local storage size.
+if { [istarget "spu*-*-*"] } {
+        return 0
+}
+
 set prms_id 0
 set bug_id 0
 
-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


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