From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id UW9VCXoF72ky5z0AWB0awg (envelope-from ) for ; Mon, 27 Apr 2026 02:43:06 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=b+1OH9lu; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 1DF861E093; Mon, 27 Apr 2026 02:43:06 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 9F6F41E093 for ; Mon, 27 Apr 2026 02:43:05 -0400 (EDT) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 4CF0F4BAD17A for ; Mon, 27 Apr 2026 06:43:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4CF0F4BAD17A Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=b+1OH9lu Received: from mail-dy1-x1332.google.com (mail-dy1-x1332.google.com [IPv6:2607:f8b0:4864:20::1332]) by sourceware.org (Postfix) with ESMTPS id 23A3E4BABF06 for ; Mon, 27 Apr 2026 06:37:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 23A3E4BABF06 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 23A3E4BABF06 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1332 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777271840; cv=none; b=ndQkzJ5THbc2PuRszbn3uiQDO8IUJhLoNKWFAt2Ic+J56mtlmlRdyESAvFmHMP1HMcPjRg13rc/mk0nrinyh9FIbefaNgXFuLWOB41RH/c8erTkmuH2oyEd0OO3ySi8Vlc9gnmKfWekUcx/eve51W5kXSPNa3ycb3yuq3en7DhE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777271840; c=relaxed/simple; bh=w1k/g7zyenxg9OguxXPBNdb4q7BVZdvA+Vp2jS6R9cU=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=F/VwZ6iZCxbW5geIsOGIPKW/ayt6mvijDuH2uiOE6Acp8+OVVmNHTHdnhhQSMGckjvZBPQd0bYbkOUQBEdwcFckRWF1wVAZK6Px7Sh5phPB5a7UM8KMPQixYnb4DZLzowA8Zp0LP5uM8q8WgzYov3hJhc9HFaLkRlPOvHXD3uQU= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 23A3E4BABF06 Received: by mail-dy1-x1332.google.com with SMTP id 5a478bee46e88-2ecf9e398f4so89145eec.1 for ; Sun, 26 Apr 2026 23:37:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1777271839; x=1777876639; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=LmWWAMGTLAJkBwOU8ZSpFvvXF4yc6UgSKU3k+FeF1mg=; b=b+1OH9lu6FJP9k6kopZwGSMHV5JR1khHj4JVV1p6Tv+NhBjCOktBOzvGjhWsAEAZbs DB5p4bK5NqJMN43BAx25vJwahOntjY13ewhHBIWiTXaTiCxfBF+2ytO1t5MnxN8a2KKT b8KAd+zJ91tSJvwOjJCql5gcjruIWh1Nphpb1cyf5EZr2dtLQYbq9SLhOXq8QoYhKOkn 6OGw3c7bTYawdSCR2pwUQCKtVt2d3eSGi2yj7bhuUrxDgoW6F6hqyHb4kAYfF4U2qEcN rGFjvMa7diqKtejNOF6zdNcs6kkrbOWRy3Q8mACoAaANUHrIPs/0pf8OOFQeqe09Ca3y XHxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777271839; x=1777876639; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=LmWWAMGTLAJkBwOU8ZSpFvvXF4yc6UgSKU3k+FeF1mg=; b=YJyEz0SYf9K1A23I8vhKEDLp7d9eqX2gdnLGiv6gfXZr9STFddO3bq4Mfv0KvMCOQ2 kQJdYoEQPL0O8pLci6ctKfV1WuL62WiSwkPqOT1nufJVqCTVe1J6P6WZg+bvig3GNsJX g/j56m2sbpFKFlr2gDvGmxLN37LXSE/upSIAhkfTOF+R/3rwaZ/nOP6IgaZRfVux5vJN gML/0HAN8F/XikY143nX6mUniIuOAfsbn4BrZ9Wh5cNXoaNV2OhqSRpNAiQY8nsuiEDm C7SE1Njqjt9+xb+dYnaAfQwGUcj83Au7tJnpJrR1o3C5/HAWH3NKmnDOPyImSTSDfChb EwqA== X-Gm-Message-State: AOJu0YxzinUNpdph2frK424dP2rM5iyHbVpFhNRQ1QY2j+KW0Yodkh+k ndq4pspAgC7k+FDyQlRDnZpYC859zfuXukFBrqG8miyEn0r/opb9boIw3aKSBQ5Bg4Fui20DIpq rCtTS X-Gm-Gg: AeBDievY/g2jEjc0pK8nLDfu8CNd7Ue2IC9ioAfBznmQwv/5Cki9Yu+IQxG1KmExHry eYdxKrEHj4AnLk1lBg11XU+f8PMGAZDBq2VZLQfkFeCEVFLY8rgAu9USFhz1nfkJR1LsFYkFYnn IMG+esAc61pL/4wOzXw902a3SoRVfCExiKKC0Q6kDBiGcsZw9ueuBYYE6PjMTxygMUumck6Cxqt wItTCUsw+nPnhoWxYBQuzlWStPbQeM0jz9XDPigFsxMeO849SPOlQ+0Y8dV2U8TxiPNWNyHZ7iX 3fQ33JJxdEBMItLdOwindmhXvbXW3YVkH4SoXAfMo/gxr434xEX1/Zyak+HU0e8V5Al2XmGMshD y7qFaWuhLv5qkywyaaxjtu2sW6Xoc3sTwXm8IoBNdR4JxRxFWWI0zY0889qlkHPib+sRUkM2n3q zp84FxTw+reocE+57rLtiIGFW+xODwMLS578TkQEF2C/Or X-Received: by 2002:a05:7301:eb0:b0:2ea:5057:a304 with SMTP id 5a478bee46e88-2ea5057b8d2mr14124450eec.2.1777271839027; Sun, 26 Apr 2026 23:37:19 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8083:33bc:f32e:9aa5:b915]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2e53ccce0f5sm42060808eec.17.2026.04.26.23.37.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Apr 2026 23:37:18 -0700 (PDT) From: Thiago Jung Bauermann To: gdb-patches@sourceware.org Subject: [PATCH 36/36] GDB: testsuite: XML: Don't return -1 nor 0 from top-level Date: Mon, 27 Apr 2026 03:35:00 -0300 Message-ID: <20260427063500.3847618-37-thiago.bauermann@linaro.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260427063500.3847618-1-thiago.bauermann@linaro.org> References: <20260427063500.3847618-1-thiago.bauermann@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org This patch changes statements that return -1 or 0 from the top level. --- gdb/testsuite/gdb.xml/tdesc-arch.exp | 2 +- gdb/testsuite/gdb.xml/tdesc-regs.exp | 2 +- gdb/testsuite/gdb.xml/tdesc-reload.exp | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gdb/testsuite/gdb.xml/tdesc-arch.exp b/gdb/testsuite/gdb.xml/tdesc-arch.exp index f3bb9ba26523..9d22efde4a48 100644 --- a/gdb/testsuite/gdb.xml/tdesc-arch.exp +++ b/gdb/testsuite/gdb.xml/tdesc-arch.exp @@ -47,7 +47,7 @@ gdb_test_multiple "show architecture" $msg { # If that did not work, no point running further tests. if { "$arch1" == "" || "$arch2" == "" || "$default_arch" == "" } { unresolved "architecture XML tests" - return -1 + return } # Run these tests twice, once for $arch1 and once for $arch2, to diff --git a/gdb/testsuite/gdb.xml/tdesc-regs.exp b/gdb/testsuite/gdb.xml/tdesc-regs.exp index 96f0fe089aa5..092355020b2c 100644 --- a/gdb/testsuite/gdb.xml/tdesc-regs.exp +++ b/gdb/testsuite/gdb.xml/tdesc-regs.exp @@ -109,7 +109,7 @@ if {[string equal ${core-regs} ""]} { unsupported "register tests (missing architecture-specific core-regs setting)" } - return 0 + return } # Otherwise, we support both XML and target defined registers. diff --git a/gdb/testsuite/gdb.xml/tdesc-reload.exp b/gdb/testsuite/gdb.xml/tdesc-reload.exp index cdd075de099d..41dc30a7a5a1 100644 --- a/gdb/testsuite/gdb.xml/tdesc-reload.exp +++ b/gdb/testsuite/gdb.xml/tdesc-reload.exp @@ -21,11 +21,11 @@ require allow_xml_test standard_testfile if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { - return -1 + return } if {![runto_main]} { - return 0 + return } # Three files we're going to write out to. @@ -60,7 +60,7 @@ gdb_load ${binfile} # Run to `main' where we begin our tests. if {![runto_main]} { - return -1 + return } # Run info registers just to check this appears to run fine with the