From patchwork Fri Oct 6 22:37:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandra Loosemore X-Patchwork-Id: 23387 Received: (qmail 16152 invoked by alias); 6 Oct 2017 22:37:49 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 16138 invoked by uid 89); 6 Oct 2017 22:37:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS, URIBL_RED autolearn=ham version=3.3.2 spammy=our X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 06 Oct 2017 22:37:46 +0000 Received: from svr-orw-mbx-03.mgc.mentorg.com ([147.34.90.203]) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1e0bFZ-0006QK-4u from Sandra_Loosemore@mentor.com for gdb-patches@sourceware.org; Fri, 06 Oct 2017 15:37:45 -0700 Received: from [127.0.0.1] (147.34.91.1) by svr-orw-mbx-03.mgc.mentorg.com (147.34.90.203) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Fri, 6 Oct 2017 15:37:43 -0700 To: "gdb-patches@sourceware.org" From: Sandra Loosemore Subject: [testsuite, committed] skip gdb.mi/mi-threads-interrupt.exp if nointerrupts Message-ID: <59D805B5.6060207@codesourcery.com> Date: Fri, 6 Oct 2017 16:37:41 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 X-ClientProxiedBy: svr-orw-mbx-02.mgc.mentorg.com (147.34.90.202) To svr-orw-mbx-03.mgc.mentorg.com (147.34.90.203) 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 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"