From patchwork Wed May 31 16:25:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineet Gupta X-Patchwork-Id: 70401 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 51D68385B530 for ; Wed, 31 May 2023 16:27:40 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by sourceware.org (Postfix) with ESMTPS id 3DF263857C43 for ; Wed, 31 May 2023 16:25:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3DF263857C43 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1b00ecabdf2so54582695ad.2 for ; Wed, 31 May 2023 09:25:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1685550357; x=1688142357; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NSJO4sfy36ozV2luGeL6qC+mUSkTs9wT9LA5bl29Hlw=; b=kVPGjPa6RyNOVFNy25+9B8VhtjAdHC9/3UHNHwCgbnRQVY8xAJh8lsL5tAZP0gMrTa b0dAsCIzg4IvQiOxUvfgNgZKISzjsKGtKxKjXS+8m0xcuoHR/vTw1XzSrJ62an2tXH8c VamKY5hIS4ZeJ0vHmM9e8PgKMdNY4j0rbVltSYQwmG9tB4EOfon7AkYfAwCclG2o+BS5 KaCPo2jZvNASFF0GWhQiIWfWNIZszPYgIitHGc11bcI3eZboHQTOCwA8hudZHS/GVCrR rykZdq/RZvDUNCMnUbdxPcqQR6bRAZAnRdlwHbs6M6NX0Wl8rFpQaaJRvss6NmGeGdOE J85Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685550357; x=1688142357; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NSJO4sfy36ozV2luGeL6qC+mUSkTs9wT9LA5bl29Hlw=; b=MyfBbNjFeRWodaL5nj3evq+GlzJqVIqVFmTfgyaiqpLWQbhwmgCE+64Wti/d0cvGjz msTNYsvGqcvcwWQy/tUO6m7GMMnrNA8pq9OBJZegYyuYlMLyRpBWv+MLVd5uHkk9cm1I oLWFjqw/CMfzV997SwnDyUzNMd8/F2WFNUiflE08ws+BIrczdW7fyYUxL4o/ax6Ridiw 3uXd4xTQGkM7wnnZwfpSQB/yuH6rVYShypfTsgNTswM6OBgUaBNER+crXBTQWB/QXtAL SjM6UI2b5d0kqAkBPi9i1GX+2sxm40VrtBj5nGrNgYT42Sa9Pr4zpK/24RAAb8xwiJbF Gumw== X-Gm-Message-State: AC+VfDzRpLsc8pwpFgWn3zXXmG36eNhEJlVIj0yYFJXVKV7PJaj1bnD5 FEwYW+4FY7BAEkLN/daJAqumVfXOhgHmk21woIc= X-Google-Smtp-Source: ACHHUZ5W3H/LWg9beLDYzhavm1U6WxoCFESBnZNnMR7XlqSo2BD0k+eG7B+7LCEnEs1OXxj84X85bA== X-Received: by 2002:a17:902:eec6:b0:1b0:5d15:3132 with SMTP id h6-20020a170902eec600b001b05d153132mr5545319plb.58.1685550356983; Wed, 31 May 2023 09:25:56 -0700 (PDT) Received: from vineet-framework.ba.rivosinc.com ([71.202.114.183]) by smtp.gmail.com with ESMTPSA id q9-20020a170902788900b001a6f7744a27sm1604443pll.87.2023.05.31.09.25.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 09:25:56 -0700 (PDT) From: Vineet Gupta To: gcc-patches@gcc.gnu.org Cc: kito.cheng@gmail.com, Jeff Law , Palmer Dabbelt , Philipp Tomsich , Christoph Mullner , gnu-toolchain@rivosinc.com, Vineet Gupta Subject: [PATCH 3/3] testsuite: print any leaking torture options for debugging Date: Wed, 31 May 2023 09:25:34 -0700 Message-Id: <20230531162534.119952-4-vineetg@rivosinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230531162534.119952-1-vineetg@rivosinc.com> References: <20230531162534.119952-1-vineetg@rivosinc.com> MIME-Version: 1.0 X-Spam-Status: No, score=-11.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" This was helpful when debugging the recent multilib testsuite failure. gcc/testsuite: * lib/torture-options.exp: print the value of non-empty options: torture_without_loops, torture_with_loops, LTO_TORTURE_OPTIONS. Signed-off-by: Vineet Gupta --- gcc/testsuite/lib/torture-options.exp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/lib/torture-options.exp b/gcc/testsuite/lib/torture-options.exp index d00d07e9378d..dfb536d1d96c 100644 --- a/gcc/testsuite/lib/torture-options.exp +++ b/gcc/testsuite/lib/torture-options.exp @@ -23,15 +23,15 @@ proc torture-init { args } { global torture_without_loops global_with_loops if [info exists torture_without_loops] { - error "torture-init: torture_without_loops is not empty as expected" + error "torture-init: torture_without_loops is not empty as expected = \"${torture_without_loops}\"" } if [info exists torture_with_loops] { - error "torture-init: torture_with_loops is not empty as expected" + error "torture-init: torture_with_loops is not empty as expected = \"${torture_with_loops}\"" } global LTO_TORTURE_OPTIONS if [info exists LTO_TORTURE_OPTIONS] { - error "torture-init: LTO_TORTURE_OPTIONS is not empty as expected" + error "torture-init: LTO_TORTURE_OPTIONS is not empty as expected = \"${LTO_TORTURE_OPTIONS}\"" } set LTO_TORTURE_OPTIONS "" if [check_effective_target_lto] {