From: Andreas Arnez Date: Fri, 8 May 2015 10:50:47 +0000 (+0200) Subject: Skip watch_thread_num.exp on targets without access watchpoints X-Git-Tag: users/hjl/linux/release/2.25.51.0.2~2^2~4^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=63fc80ce17311913e41ccb671641310e4ce29eaf;p=thirdparty%2Fbinutils-gdb.git 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. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index a2bb3c92ef3..8284a496a69 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-05-08 Andreas Arnez + + * gdb.base/watch_thread_num.exp: Skip test on targets without + access watchpoints. + 2015-05-06 Pedro Alves PR server/18081 diff --git a/gdb/testsuite/gdb.base/watch_thread_num.exp b/gdb/testsuite/gdb.base/watch_thread_num.exp index d559f22386f..6d767c27340 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 }