[rfa] Skip thread test flag in testsuite/gdb.threads/*.exp

Markus Deuling deuling@de.ibm.com
Thu Sep 13 05:41:00 GMT 2007


Hi,

on SPU targets there are no threads available. Wenn running the testsuite all tests in gdb.threads are marked as unsupproted due to fail of gdb_compile_pthreads (no pthread library for SPU). This patchs adds a check to all those testcase for a flag to set in a target board file:

set_board_info gdb,skip_thread_tests 1

With this flag you can easily switch of thread tests for your target board. The advantage of this solution is a much cleaner log file. I see a lot of annoying compiler errors in gdb.log all the time
I run the testsuite on SPU.

What do you think? Would that be ok for mainline?

ChangeLog:

	* testsuite/gdb.threads/bp_in_thread.exp: Skip test if
	skip_thread_tests is set for target board.
	Likewise for gcore-thread.exp, killed.exp, linux-dp.exp,
	manythreads.exp, print-threads.exp, pthread_cond_wait.exp, pthreads.exp,
	schedlock.exp, sigthread.exp, step2.exp, step.exp, switch-threads.exp,
	threadapply.exp, thread_check.exp, thread-specific.exp, tls.exp,
	tls-nodebug.exp, tls-shared.exp, watchthreads.exp, staticthreads.exp.


-- 
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diff-skip-thread-test
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20070913/9e2c5eda/attachment.ksh>


More information about the Gdb-patches mailing list