diff mbox

[testsuite,committed] skip gdb.mi/mi-threads-interrupt.exp if nointerrupts

Message ID 59D805B5.6060207@codesourcery.com
State New
Headers show

Commit Message

Sandra Loosemore Oct. 6, 2017, 10:37 p.m. UTC
I've checked in this patch to skip gdb.mi/mi-threads-interrupt.exp if 
there's no interrupt support in the configuration being tested.  We've 
run into this in our Windows-host GDB testing, in particular; without 
using Cygwin to intercept ^C,

send_gdb "\003"

fails to do anything to stop the target, so remaining tests just time out.

The added check was copied directly from gdb.base/interrupt.exp and 
there are already several other tests that are skipped for this reason 
too, so I think this patch qualifies as obvious.

diff mbox


diff --git a/gdb/testsuite/gdb.mi/mi-threads-interrupt.exp b/gdb/testsuite/gdb.mi/mi-threads-interrupt.exp
index ab06837..23ff69e 100644
--- a/gdb/testsuite/gdb.mi/mi-threads-interrupt.exp
+++ b/gdb/testsuite/gdb.mi/mi-threads-interrupt.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 mi-threads-interrupt.exp because of nointerrupts."
+    continue
 load_lib mi-support.exp
 set MIFLAGS "-i=mi"