Update copyright year range in all GDB files
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.threads / manythreads.exp
index 2a55f868a01983c45c65a4b999378c3ec818ec12..557db5a3144ca44aa139edb58db497e938094980 100644 (file)
@@ -1,5 +1,5 @@
 # manythreads.exp -- Expect script to test stopping many threads
-# Copyright (C) 2004-2015 Free Software Foundation, Inc.
+# Copyright (C) 2004-2018 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 
 # 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
 
@@ -65,14 +70,14 @@ proc interrupt_and_wait { message } {
        -re "\\\[\[^\]\]* exited\\\]\r\n" {
            exp_continue
        }
-       -re "Program received signal SIGINT.*$gdb_prompt $" {
+       -re " received signal SIGINT.*$gdb_prompt $" {
            pass "$message"
        }
        -re "$gdb_prompt $" {
            # Note that with this regex order, if GDB emits [New
-           # Thread ...] output between "Program received signal" and
-           # the prompt, the "Program received signal" regex won't
-           # match.  That's good, as if we see that happening, it's a
+           # Thread ...] output between "Thread NNN received signal"
+           # and the prompt, the "received signal" regex won't match.
+           # That's good, as if we see that happening, it's a
            # regression.
            #
            # GDB makes sure to notify about signal stops, end of
@@ -87,7 +92,7 @@ proc interrupt_and_wait { message } {
            #  ... more new threads output ...
            #  [New Thread NNN]
            #  [New Thread NNN]
-           #  Program received signal SIGINT, Interrupt.
+           #  Thread NNN received signal SIGINT, Interrupt.
            #  [New Thread NNN]
            #  [New Thread NNN]
            #  ... pages of new threads output ...
@@ -146,7 +151,7 @@ remote_expect host 1 {
   -re "\\\[\[^\]\]* exited\\\]\r\n" {
     exp_continue -continue_timer
   }
-  -re "Program received signal SIGINT.*$gdb_prompt $" {
+  -re " received signal SIGINT.*$gdb_prompt $" {
     if { $failed == 0 } {
       fail "check for duplicate SIGINT"
     }
This page took 0.027747 seconds and 4 git commands to generate.