diff options
author | Sandra Loosemore <sandra@codesourcery.com> | 2015-12-14 15:02:59 -0800 |
---|---|---|
committer | Sandra Loosemore <sandra@codesourcery.com> | 2015-12-14 15:02:59 -0800 |
commit | 87a3a92c46c770e6aa2ca1209f46af16eae2c4e9 (patch) | |
tree | 20befb6166c28a18b2fe0a63829e3c964daa7d3e /gdb/testsuite/gdb.threads | |
parent | 19d9d4efd18bcc633e99cb6a3e39bd9b22ca70ce (diff) | |
download | gdb-87a3a92c46c770e6aa2ca1209f46af16eae2c4e9.zip gdb-87a3a92c46c770e6aa2ca1209f46af16eae2c4e9.tar.gz gdb-87a3a92c46c770e6aa2ca1209f46af16eae2c4e9.tar.bz2 |
Skip tests that send ctrl-c to GDB if nointerrupts target property is set.
2015-12-14 Sandra Loosemore <sandra@codesourcery.com>
gdb/testsuite/
* gdb.base/completion.exp: Skip tests that interrupt GDB with
ctrl-C if nointerrupts target property is set.
* gdb.base/double-prompt-target-event-error.exp: Likewise.
* gdb.base/paginate-after-ctrl-c-running.exp: Likewise.
* gdb.base/paginate-bg-execution.exp: Likewise.
* gdb.base/paginate-execution-startup.exp: Likewise.
* gdb.base/random-signal.exp: Likewise.
* gdb.base/range-stepping.exp: Likewise.
* gdb.cp/annota2.exp: Likewise.
* gdb.cp/annota3.exp: Likewise.
* gdb.gdb/selftest.exp: Likewise.
* gdb.threads/continue-pending-status.exp: Likewise.
* gdb.threads/leader-exit.exp: Likewise.
* gdb.threads/manythreads.exp: Likewise.
* gdb.threads/pthreads.exp: Likewise.
* gdb.threads/schedlock.exp: Likewise.
* gdb.threads/sigthread.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.threads')
-rw-r--r-- | gdb/testsuite/gdb.threads/continue-pending-status.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.threads/leader-exit.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.threads/manythreads.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.threads/pthreads.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.threads/schedlock.exp | 6 | ||||
-rw-r--r-- | gdb/testsuite/gdb.threads/sigthread.exp | 6 |
6 files changed, 32 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.threads/continue-pending-status.exp b/gdb/testsuite/gdb.threads/continue-pending-status.exp index 1f170f7..0833065 100644 --- a/gdb/testsuite/gdb.threads/continue-pending-status.exp +++ b/gdb/testsuite/gdb.threads/continue-pending-status.exp @@ -17,6 +17,11 @@ # thread, then switching to a thread that has a status pending and # continuing. +if [target_info exists gdb,nointerrupts] { + verbose "Skipping continue-pending-status.exp because of nointerrupts." + return +} + standard_testfile if [prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}] { diff --git a/gdb/testsuite/gdb.threads/leader-exit.exp b/gdb/testsuite/gdb.threads/leader-exit.exp index 01e3258..7de91a9 100644 --- a/gdb/testsuite/gdb.threads/leader-exit.exp +++ b/gdb/testsuite/gdb.threads/leader-exit.exp @@ -13,6 +13,11 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +if [target_info exists gdb,nointerrupts] { + verbose "Skipping leader-exit.exp because of nointerrupts." + return +} + # Exit of the thread group leader should not break GDB. standard_testfile diff --git a/gdb/testsuite/gdb.threads/manythreads.exp b/gdb/testsuite/gdb.threads/manythreads.exp index 2a55f86..b6a1c21 100644 --- a/gdb/testsuite/gdb.threads/manythreads.exp +++ b/gdb/testsuite/gdb.threads/manythreads.exp @@ -16,6 +16,11 @@ # This file was written by Jeff Johnston. (jjohnstn@redhat.com) +# This test requires sending ^C to interrupt the running target. +if [target_info exists gdb,nointerrupts] { + verbose "Skipping manythreads.exp because of nointerrupts." + return +} standard_testfile diff --git a/gdb/testsuite/gdb.threads/pthreads.exp b/gdb/testsuite/gdb.threads/pthreads.exp index 80cae2c..b456641 100644 --- a/gdb/testsuite/gdb.threads/pthreads.exp +++ b/gdb/testsuite/gdb.threads/pthreads.exp @@ -15,6 +15,11 @@ # This file was written by Fred Fish. (fnf@cygnus.com) +# This test requires sending ^C to interrupt the running target. +if [target_info exists gdb,nointerrupts] { + verbose "Skipping pthreads.exp because of nointerrupts." + return +} standard_testfile diff --git a/gdb/testsuite/gdb.threads/schedlock.exp b/gdb/testsuite/gdb.threads/schedlock.exp index 54e847e..65b13ff 100644 --- a/gdb/testsuite/gdb.threads/schedlock.exp +++ b/gdb/testsuite/gdb.threads/schedlock.exp @@ -18,6 +18,12 @@ # # This test covers the various forms of "set scheduler-locking". +# This test requires sending ^C to interrupt the running target. + +if [target_info exists gdb,nointerrupts] { + verbose "Skipping schedlock.exp because of nointerrupts." + return +} standard_testfile diff --git a/gdb/testsuite/gdb.threads/sigthread.exp b/gdb/testsuite/gdb.threads/sigthread.exp index ea3a62d..cc1634a 100644 --- a/gdb/testsuite/gdb.threads/sigthread.exp +++ b/gdb/testsuite/gdb.threads/sigthread.exp @@ -37,6 +37,12 @@ gdb_test_multiple "continue" "continue" { } } +# This test requires sending ^C to interrupt the running target. +if [target_info exists gdb,nointerrupts] { + verbose "Skipping sigthread.exp because of nointerrupts." + return +} + # For this to work we must be sure to consume the "Continuing." # message first, or GDB's signal handler may not be in place. after 500 {send_gdb "\003"} |