From patchwork Thu Jun 1 19:39:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineet Gupta X-Patchwork-Id: 70473 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 E32CF385696B for ; Thu, 1 Jun 2023 19:40:05 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by sourceware.org (Postfix) with ESMTPS id 1CBC23858C50 for ; Thu, 1 Jun 2023 19:39:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1CBC23858C50 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-pf1-x42b.google.com with SMTP id d2e1a72fcca58-65299178ac5so320800b3a.1 for ; Thu, 01 Jun 2023 12:39:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1685648389; x=1688240389; 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=uPGwjdInBAl0NfQaOJMZsiH5WuI7EgW8hcrspghrtglSZGjRXQ3L33zclMyA7OBnr3 MjjjYa8YS4cUhKprgpZvwl6Vzy7FgQZMnfgiKZMUfqktoErbkxqbfnnRkhBiSlm1Ikkn ooB4kQTEUAnyyA4LigATr2lxNQC23etaW7ZsjhuAzNFannXzlX+9vSb659gFjiwC/VBI pqcDG3LsQ2anYhEOqy14XLTmJ5VcXel8p5MLRNiNGQhXfOTuHUZY76EpwRCPAb9vvi4N Ub0+y8IvzPeYNzdec/K3zTJA5Ax2CsnO/j/rtt/1KWGCE5n5heZIGeehvOCws8xQ4MfW xW/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685648389; x=1688240389; 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=KUaWRjXItPDjbgmEoxIMxT71u1xYjPcUtKccdAFqp1aQdtNxso8Hy/vdKyTtHGUiU0 NOoMryR99+wwtoARq7eH75HzOWfTaXI1HFjETOkNifQzwpBRjwOANDa6FATpArwjTSJS /O7uPyPlUsBX45SY26XJBKLRAsoX9riOxXMn5HijBesIo2Ps/sV5bMjT4gdtEfDNqhgU s0ymMWJY1apetdNb/2mmJgcxMpcUhqVIuHuxClSnBzsSyREAjX4Wa4bqTia23Rp9FHsH ide5T9pRlq2mZCN/LBWP/Go8SJc/nhKPivOooreotEfrNflNr29aQ72rs9cXGekcevQc kWOw== X-Gm-Message-State: AC+VfDywLLB+nssetWFLh6cjMyclFrMavCPZlEiDzDcbPWgbbxuddAO1 7FGB7R2L42GT5no285CiV8BLgERpbb306rcHT/0= X-Google-Smtp-Source: ACHHUZ6tG2kcYosQrnRA2tFyFj0MdmBdzvlGGPnnAEvZG+i7xKISc3bGqPVhhNVyZKsz3PwgrX/PQg== X-Received: by 2002:a05:6a20:3d0c:b0:102:18a9:cad7 with SMTP id y12-20020a056a203d0c00b0010218a9cad7mr13641936pzi.58.1685648388992; Thu, 01 Jun 2023 12:39:48 -0700 (PDT) Received: from vineet-framework.ba.rivosinc.com ([71.202.114.183]) by smtp.gmail.com with ESMTPSA id h8-20020a654688000000b00534684201b0sm3260108pgr.27.2023.06.01.12.39.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jun 2023 12:39:48 -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: [Committed] testsuite: print any leaking torture options for debugging Date: Thu, 1 Jun 2023 12:39:45 -0700 Message-Id: <20230601193945.160085-1-vineetg@rivosinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <9c3c5481-a84b-7e8f-262b-e755310ac8fc@gmail.com> References: <9c3c5481-a84b-7e8f-262b-e755310ac8fc@gmail.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] {