From patchwork Sat Jun 20 03:17:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 7264 X-Patchwork-Delegate: vapier@gentoo.org Received: (qmail 37755 invoked by alias); 20 Jun 2015 03:17:24 -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 37711 invoked by uid 89); 20 Jun 2015 03:17:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-HELO: smtp.gentoo.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sat, 20 Jun 2015 03:17:17 +0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 1EA95340C1C for ; Sat, 20 Jun 2015 03:17:16 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH] gdb: tests: mark async unsupported dynamically Date: Fri, 19 Jun 2015 23:17:14 -0400 Message-Id: <1434770234-24916-1-git-send-email-vapier@gentoo.org> X-IsSubscribed: yes There are many targets which do not support asynchronous execution. Rather than having the async tests mark them as FAIL, use UNSUPPORTED as that better represents the state. --- 2015-06-19 Mike Frysinger * gdb.base/async.exp (test_background): Call unsupported when async isn't supported. gdb/testsuite/gdb.base/async.exp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gdb/testsuite/gdb.base/async.exp b/gdb/testsuite/gdb.base/async.exp index 2d3fb73..4b9168a 100644 --- a/gdb/testsuite/gdb.base/async.exp +++ b/gdb/testsuite/gdb.base/async.exp @@ -58,6 +58,9 @@ proc test_background {command before_prompt after_prompt {message ""}} { -re "^$command\r\n${before_prompt}${gdb_prompt}${after_prompt}completed\.\r\n" { pass "$message" } + -re "Asynchronous execution not supported on this target\.\r\n" { + unsupported "$message" + } -re "$gdb_prompt.*completed\.\r\n" { fail "$message" }