From: Pedro Alves Date: Fri, 13 Oct 2017 11:18:50 +0000 (+0100) Subject: Skip gdb.threads/thread_events.exp on RSP targets properly X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d7bcd5b8e55c54543389196fd18453db6961e314;p=binutils-gdb.git Skip gdb.threads/thread_events.exp on RSP targets properly Fixes, with --target_board=native-extended-gdbserver: Running ..../src/gdb/testsuite/gdb.threads/thread_events.exp ... FAIL: gdb.threads/thread_events.exp: continue to after_join_func with messages enabled (saw 0, expected 1) gdb/testsuite/ChangeLog: 2017-10-13 Pedro Alves * gdb.threads/thread_events.exp: Check gdb_protocol instead of is_remote. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 3532ed3ed07..6296e10cfd4 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-10-13 Pedro Alves + + * gdb.threads/thread_events.exp: Check gdb_protocol instead of + is_remote. + 2017-10-13 Pedro Alves * gdb.base/corefile.exp (corefile_test_run): Skip if gdb_protocol diff --git a/gdb/testsuite/gdb.threads/thread_events.exp b/gdb/testsuite/gdb.threads/thread_events.exp index d8d19c85210..7ccef552869 100644 --- a/gdb/testsuite/gdb.threads/thread_events.exp +++ b/gdb/testsuite/gdb.threads/thread_events.exp @@ -27,9 +27,10 @@ if ![istarget *-*-linux*] then { return } -# When using gdbserver, even on Linux, we don't get notifications -# about new threads. This is expected, so don't test for that. -if [is_remote target] then { +# When using the RSP, we don't get notifications about new threads. +# This is expected, so don't test for that. +if {[target_info gdb_protocol] == "remote" + || [target_info gdb_protocol] == "extended-remote"} { return }