From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id c+QbBMfOaWCbDwAAWB0awg (envelope-from ) for ; Sun, 04 Apr 2021 10:35:51 -0400 Received: by simark.ca (Postfix, from userid 112) id D24451EF68; Sun, 4 Apr 2021 10:35:50 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 4C61A1EF62 for ; Sun, 4 Apr 2021 10:35:49 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B5012385E445; Sun, 4 Apr 2021 14:35:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B5012385E445 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1617546948; bh=0ydjvm2f2dunZB4dH5t4c+pv1snDpbZulW7w17GTm1Q=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=JQw4lgb88ZSBOTXftMMEZGXUYitspQlzPKvYfhLFhVpVPN5uU2pMbTggpvV50c2V+ 5Jp56aqMsZqgoAe6uNfHrs3GkJs9pybFbn2LEU2OYCvlraiBFgIr/alzUesw0zYpA7 bfFUY5WHvBU1fw7tFBlnUVeH7u347kOQibkG9hEg= Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id CD5A2385E007 for ; Sun, 4 Apr 2021 14:35:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org CD5A2385E007 Received: from vapier.lan (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id DC846335D24 for ; Sun, 4 Apr 2021 14:35:44 +0000 (UTC) To: gdb-patches@sourceware.org Subject: [PATCH 3/3] sim: testsuite: support exit 77 for unsupported tests Date: Sun, 4 Apr 2021 10:35:38 -0400 Message-Id: <20210404143538.14995-3-vapier@gentoo.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210404143538.14995-1-vapier@gentoo.org> References: <20210404143538.14995-1-vapier@gentoo.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Mike Frysinger via Gdb-patches Reply-To: Mike Frysinger Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" Exit status 77 is common (including the autotools world) to indicate "skip this test". Add support for mapping that to "unsupported" as that's the closest in the dejagnu world. --- sim/testsuite/lib/sim-defs.exp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sim/testsuite/lib/sim-defs.exp b/sim/testsuite/lib/sim-defs.exp index e627b6efc595..59c7dede83e4 100644 --- a/sim/testsuite/lib/sim-defs.exp +++ b/sim/testsuite/lib/sim-defs.exp @@ -402,7 +402,9 @@ proc run_sim_test { name requested_machs } { set output [lindex $result 1] set status fail - if { $return_code == $opts(status) } { + if { $return_code == 77 } { + set status unsupported + } elseif { $return_code == $opts(status) } { set status pass } -- 2.30.2