[testsuite,committed] skip gdb.mi/mi-threads-interrupt.exp if nointerrupts
Commit Message
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.
-Sandra
@@ -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"