This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[testsuite, committed] skip gdb.mi/mi-threads-interrupt.exp if nointerrupts
- From: Sandra Loosemore <sandra at codesourcery dot com>
- To: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Fri, 6 Oct 2017 16:37:41 -0600
- Subject: [testsuite, committed] skip gdb.mi/mi-threads-interrupt.exp if nointerrupts
- Authentication-results: sourceware.org; auth=none
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
2017-10-06 Sandra Loosemore <sandra@codesourcery.com>
gdb/testsuite/
* gdb.mi/mi-threads-interrupt.exp: Skip test if nointerrupts.
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"