Skip watch_thread_num.exp on targets without access watchpoints

Since watch_thread_num.exp was changed to use access watchpoints, the
test case fails on s390 and s390x, since those targets do not support
access watchpoints.  This patch skips the test case on such targets.

gdb/testsuite/ChangeLog:

	* gdb.base/watch_thread_num.exp: Skip test on targets without
	access watchpoints.
This commit is contained in:
Andreas Arnez 2015-05-08 12:50:47 +02:00 committed by Andreas Krebbel
parent 7a261c91c8
commit 63fc80ce17
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
* gdb.base/watch_thread_num.exp: Skip test on targets without
access watchpoints.
2015-05-06 Pedro Alves <palves@redhat.com>
PR server/18081

View File

@ -21,7 +21,9 @@
# This test verifies that a watchpoint is detected in the proper thread
# so the test is only meaningful on a system with hardware watchpoints.
if {[skip_hw_watchpoint_tests]} {
# More specifically, the implementation of this test uses access
# watchpoints, so skip it when those are not available.
if {[skip_hw_watchpoint_access_tests]} {
return 0
}