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

mail settings
Submitter Sandra Loosemore
Date Oct. 6, 2017, 10:37 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/23387/
State New
Headers show


Sandra Loosemore - Oct. 6, 2017, 10:37 p.m.
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 --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 <>.
+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"