From patchwork Sat Nov 11 23:11:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brendan Shanks X-Patchwork-Id: 164172 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp455734vqg; Sat, 11 Nov 2023 15:12:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IGZRFZBCnsR09HMDKCrufbW6ggIiZTi0Hdh+kQ5H7Wk2CN/xgUN2YikH0/elOB87kpgJeFd X-Received: by 2002:ac8:7d96:0:b0:41c:c064:91f1 with SMTP id c22-20020ac87d96000000b0041cc06491f1mr4284948qtd.68.1699744344774; Sat, 11 Nov 2023 15:12:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699744344; cv=pass; d=google.com; s=arc-20160816; b=cMvsFts5x+IHZ5UJQa4CUwmPQykHhi8oZWJKyknbu7bN42RGykbDUuwYko1Hk4+8rO NCHvVZW+eAXK3IgaH5/GrnS9gjEgGHHGqfl5mRmu8qep1AjFpvuEQF3O7zKrxqhlL3HM 6W+rC7nwBs/zadJrMI1YsD0VUZjIpvTsB8kTiDQZskJUFcXbTXvzeYclaW0gReGlgVe+ 8HaChIhBB9aflCrTsdqekYZ41fSMJE/KCs+JiozD9DARRvnROVrA/me7Dz1+cyowFAhM kIQ090jOGEvx+IibD6JkUPaMvtwc3WogqP7TQv6Eu+7O9+MD5FO+AUz39H9626SHrOPX VhZg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=c20lE81afBvoEMx2/+FEbVtM9tnOBbB6Nf0eQ59ZLYk=; fh=ct5Xf7gj4FQlhh9gSW9VpfqWdSS3lDI9xK7zuV1IBBg=; b=hdOzIimfrnVAtPNBBOlZWf+nTmb+N8Vw8V1d8Wp9VaUeqqIsCcuntccRrLwSJLzm6n cTOlVo4kbRCNBRmDtOErRPIaaJkfkjaMO59LvSwdZV4vQ3uzI7A7Zo5sHo9r6Sn0ii/r 25F6fCBxY0eWKaZIH837r8ZNacSh+6twlDDqbeIbtMm6lxldInK5JH6AHtMvUenGlWNm 71ZgRqx+2qEisQPIXzYYHulj2PfdemsKmQ/sr2sN31t8OYk5lTTfg45Jr4DSmpGjwIf0 zGUW6gR+KB6p7LCov6utrRabV8uLZMYqN7i+xKebiR1UPs0AG6NLrtwfrNcZIONhzpxv pwdA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@codeweavers.com header.s=s1 header.b=RLQbpGyT; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=codeweavers.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id c10-20020ac85a8a000000b00419845c7a91si2115024qtc.377.2023.11.11.15.12.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Nov 2023 15:12:24 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@codeweavers.com header.s=s1 header.b=RLQbpGyT; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=codeweavers.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8ACC73856DD0 for ; Sat, 11 Nov 2023 23:12:24 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail.codeweavers.com (mail.codeweavers.com [4.36.192.163]) by sourceware.org (Postfix) with ESMTPS id BB5F83858D35 for ; Sat, 11 Nov 2023 23:12:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BB5F83858D35 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=codeweavers.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=codeweavers.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org BB5F83858D35 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=4.36.192.163 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699744322; cv=none; b=fwLvObjc/5IK3fk7k072LHILDtYeJCV9CRogcNqEjZUmCGoHGqYQC2M7eCrHCAJO0jCPFWo/fkV2JMMcT6kGJLl/dTPNpRiv0i6pVqm+HK4hqG5/Ywk5BFzcTo4dPZIT2K8Tsj99D0R+2lKmsfJ8at34kP4+7WJCHP6/9GJhNNQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699744322; c=relaxed/simple; bh=bytDX6mZcqiqkSl3YzCYn43dmYkEy40acVI/b3Wg15Y=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=DysRTok0uih6Mcj9zknPNBch2PZNlu5ivdGhShV7n+4Q/Ah+E9P0yBJUg3Xqm2Z3t660SgOQ9WgTT05WUGQFJW1+5jiIYUcbcQcsEqI9y2zUmacR4Bw5t1b7HYvoF5Zt4EroAekJawBa75v+1uMZ6ozMEs2+uRgG7dZLjeOY/Vw= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=codeweavers.com; s=s1; h=Message-ID:Date:Subject:Cc:To:From:Sender; bh=c20lE81afBvoEMx2/+FEbVtM9tnOBbB6Nf0eQ59ZLYk=; b=RLQbpGyTYt06ZyED4U/CX0HPyh tr2xis1qpeZObI19zb34p4POyabpuRxJVJRhvOVLUg7Ph9wLfuKWPmKW7QooLKS1iP1NcU4p/Exbo DP43h83Md5Ey2M8XMFSvTZVZkM83ik6vnxqLV+89bbzJRLJe5Z2tsl8gP8whT7/wMW7qtz6Az4ZPa IWUmFghUNRCr4FnBMCh/Jx18WQO/x3/AQt5L3r3rMLy7rU1jhE8R1S6c5g9il82kfrhs9QQTM4emk hcG/VTiPaE0cwAld5v7ggM0AH3WSIDaiHW9/erCTWsU/UcV4uI0hd+zdM0KIx6dMBVRZsw0EsN4Lc fYT3e3jg==; Received: from ip72-203-125-151.oc.oc.cox.net ([72.203.125.151] helo=zen.bslabs.net) by mail.codeweavers.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r1x8x-00CBvG-3A; Sat, 11 Nov 2023 17:11:59 -0600 From: Brendan Shanks To: gcc-patches@gcc.gnu.org Cc: prathamesh.kulkarni@linaro.org, richard.guenther@gmail.com, patrick@rivosinc.com, jeffreyalaw@gmail.com, Brendan Shanks Subject: [PATCH] testsuite: Fix bad-mapper-1.C test failures with posix_spawn Date: Sat, 11 Nov 2023 15:11:12 -0800 Message-ID: <20231111231146.31932-1-bshanks@codeweavers.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Spam-Status: No, score=-13.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782311125956696503 X-GMAIL-MSGID: 1782311125956696503 bad-mapper-1.C has been failing since the posix_spawn codepath was added to libiberty, adjust the check to accept the changed error message. Patch has been verified on x86_64 Linux. gcc/testsuite: * g++.dg/modules/bad-mapper-1.C: Also accept posix_spawn. Signed-off-by: Brendan Shanks --- gcc/testsuite/g++.dg/modules/bad-mapper-1.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/g++.dg/modules/bad-mapper-1.C b/gcc/testsuite/g++.dg/modules/bad-mapper-1.C index 4b2312885d8..53e3e1d0c88 100644 --- a/gcc/testsuite/g++.dg/modules/bad-mapper-1.C +++ b/gcc/testsuite/g++.dg/modules/bad-mapper-1.C @@ -1,6 +1,6 @@ // { dg-additional-options "-fmodules-ts -fmodule-mapper=|this-will-not-work" } import unique1.bob; -// { dg-error "-:failed (exec|CreateProcess).*mapper.* .*this-will-not-work" "" { target { ! { *-*-darwin[89]* *-*-darwin10* } } } 0 } +// { dg-error "-:failed (exec|CreateProcess|posix_spawn).*mapper.* .*this-will-not-work" "" { target { ! { *-*-darwin[89]* *-*-darwin10* } } } 0 } // { dg-prune-output "fatal error:" } // { dg-prune-output "failed to read" } // { dg-prune-output "compilation terminated" }