From patchwork Mon Apr 20 11:43:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 1273287 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gcc.gnu.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=bo5kKviw; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 495Pwn0x96z9sP7 for ; Mon, 20 Apr 2020 21:43:51 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CFB54386EC6D; Mon, 20 Apr 2020 11:43:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CFB54386EC6D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1587383027; bh=r3PTCAAdGWi0qpcJ9UyuwNaRSXAEz/GmibvKtPZZKVI=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=bo5kKviwwxPGEoBIjp/O7is6Bom7jJRJI39nUorJQw9NK3nVshpD4ouHTLRy/OHLv JPMqjB9MV13N+w7G6Gc0zk75dMLx+A2WpNpRI/svWJXnsjiMpbqbkY4197byVFjjBi E1kwR3Ys9N09oAQN2rbctR7tWORRDwviZ854W0hc= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by sourceware.org (Postfix) with ESMTPS id 1B03F384B104 for ; Mon, 20 Apr 2020 11:43:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 1B03F384B104 Received: by mail-wr1-x42b.google.com with SMTP id g13so9696075wrb.8 for ; Mon, 20 Apr 2020 04:43:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=r3PTCAAdGWi0qpcJ9UyuwNaRSXAEz/GmibvKtPZZKVI=; b=QNFn/Taa2542tm4vxoeq5y5js5wUJE7tId2AzGVHK9RK7NcuF0I+SqWaNAnKJAmHq5 gNyeO4KaVDRg6yFxP8drXQ2G6qYBuIsE9LIjr/Qxjf3e1o74l3J8mPERKudqcdNrjaWA xk4GZWiO2rAKfNn4MWezYTotL6WNBd0ZM34TVO2JnKe2DUP61Bwyl4o1LC6QA/6TCXCp sLVaDECHM+hMdizPzQVOF4mnCmSAgI7k2sE/NPvI72GXvZ39D9iwfUoujY+VQK8WPNMg E/VzxRkIkAXpNv8jiSomU2NudJna8uHKMM+VOY8Pj7LlT/CjrhbPL/VURzNU8ws/Lvg/ Kylw== X-Gm-Message-State: AGi0Pubnn+NKQRhzTcb/x5YvcV1FELJm9Ym6NYCDckviH3DqQk+hMWMN 2lhji/YXAzxtfw8GImCjxwVJUVJIsFpFWQ== X-Google-Smtp-Source: APiQypIjQ+0HSoh9TA9xxitS1hHMFHlCXWX5p/xEg7cCHPhldndms4VVLrIhGvNqawrvYHtO4X0JVA== X-Received: by 2002:adf:f146:: with SMTP id y6mr19545999wro.132.1587383023593; Mon, 20 Apr 2020 04:43:43 -0700 (PDT) Received: from localhost.localdomain (static.42.136.251.148.clients.your-server.de. [148.251.136.42]) by smtp.gmail.com with ESMTPSA id a20sm886970wra.26.2020.04.20.04.43.42 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Apr 2020 04:43:43 -0700 (PDT) To: gcc-patches@gcc.gnu.org Subject: [PATCH 1/1] testsuite: Handle --save-temps in schedule-cleanups Date: Mon, 20 Apr 2020 11:43:42 +0000 Message-Id: <1587383022-30441-1-git-send-email-christophe.lyon@linaro.org> X-Mailer: git-send-email 2.7.4 X-Spam-Status: No, score=-24.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Christophe Lyon via Gcc-patches From: Christophe Lyon Reply-To: Christophe Lyon Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" Some tests use --save-temps, but schedule-cleanups strictly matches -save-temps, so we leave many temporary files after validation. Instead of fixing every offending testcase, it's simpler and future-proof to make schedule-cleanups handle both --save-temps and -save-temps. 2020-04-20 Christophe Lyon gcc/testsuite/ * lib/gcc-dg.exp (schedule-cleanups): Accept --save-temps. --- gcc/testsuite/lib/gcc-dg.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/lib/gcc-dg.exp b/gcc/testsuite/lib/gcc-dg.exp index cccd3ce..27cc7c1 100644 --- a/gcc/testsuite/lib/gcc-dg.exp +++ b/gcc/testsuite/lib/gcc-dg.exp @@ -171,7 +171,7 @@ proc schedule-cleanups { opts } { verbose "dg-keep-saved-temps ${keep_saved_temps_suffixes}" 2 } # -save-temps -> cleanup-saved-temps() - if [regexp -- {(^|\s+)-save-temps(\s+|$)} $opts] { + if [regexp -- {(^|\s+)-?-save-temps(\s+|$)} $opts] { verbose "Cleanup -save-temps seen" 4 if [info exists keep_saved_temps_suffixes] { append finalcode "cleanup-saved-temps ${keep_saved_temps_suffixes}\n"