public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Skip watch_thread_num.exp on targets without access watchpoints
@ 2015-04-28 12:09 Andreas Arnez
  2015-04-29 14:22 ` Pedro Alves
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Arnez @ 2015-04-28 12:09 UTC (permalink / raw)
  To: gdb-patches

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.
---
 gdb/testsuite/gdb.base/watch_thread_num.exp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gdb/testsuite/gdb.base/watch_thread_num.exp b/gdb/testsuite/gdb.base/watch_thread_num.exp
index d559f22..6d767c2 100644
--- a/gdb/testsuite/gdb.base/watch_thread_num.exp
+++ b/gdb/testsuite/gdb.base/watch_thread_num.exp
@@ -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
 }
 
-- 
1.9.3

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Skip watch_thread_num.exp on targets without access watchpoints
  2015-04-28 12:09 [PATCH] Skip watch_thread_num.exp on targets without access watchpoints Andreas Arnez
@ 2015-04-29 14:22 ` Pedro Alves
  0 siblings, 0 replies; 2+ messages in thread
From: Pedro Alves @ 2015-04-29 14:22 UTC (permalink / raw)
  To: Andreas Arnez, gdb-patches

On 04/28/2015 12:35 PM, Andreas Arnez wrote:
> 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.

OK.

Thanks,
Pedro Alves

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-04-29 11:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-28 12:09 [PATCH] Skip watch_thread_num.exp on targets without access watchpoints Andreas Arnez
2015-04-29 14:22 ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).