From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 4duwJMYEsGQFWyAAWB0awg (envelope-from ) for ; Thu, 13 Jul 2023 10:05:58 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=BLGp/76n; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 88D171E0BE; Thu, 13 Jul 2023 10:05:58 -0400 (EDT) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 6E9EE1E00F for ; Thu, 13 Jul 2023 10:05:56 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AB3C73857359 for ; Thu, 13 Jul 2023 14:05:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AB3C73857359 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1689257153; bh=iZp3m+sBCkNOVzu20zjujFdRq7FlsIfhI8HANjTguHw=; h=Date:Subject:References:In-Reply-To:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=BLGp/76nImvV/o4STuV6JxXfalhLV/32vjl/eBf9WVTNPHYcovlWnhYxXdwhYdWHi dN5w9IfTwLOL2M/ebs/gdzD4NAoR4Qag3T974CJ0mfJe5r1FC7F0oruw4Q/tPa14vr 5YmfHc7ewhD9+iYiw6MQ94BvvgPJC7EsFb2rgRXo= Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by sourceware.org (Postfix) with ESMTPS id 9A24E3858D32 for ; Thu, 13 Jul 2023 14:05:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9A24E3858D32 Received: by mail-io1-xd2e.google.com with SMTP id ca18e2360f4ac-78362f57500so26749039f.3 for ; Thu, 13 Jul 2023 07:05:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689257131; x=1691849131; h=to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iZp3m+sBCkNOVzu20zjujFdRq7FlsIfhI8HANjTguHw=; b=QilDWUCySq/Jwkq7NTGlB45FH2k+kdBQbL6/bZwDvCBuxEtnPtodDsTPrAssPJkVRe L9/TkUBR7hE7DbbmErNBSXQ1tNN8hyHKsteA7POZF9sc4QuUQ8g1/UMUKJtTpoVUWG5M osO1A1xmTzEP/SNGq+uA4lR1xBzWqkNzKRsroFRy+lnO1FcSl/k+xByNShxvftKKlni0 Uqd1DNgUZMEUurQZ/baG72qHGFd79rzmIolJOvZCb3G7vJDv/Ng5f1QQVbs+N/Kkd+Ao q+PKrZ6piUuYvZuXb1RWu1pxhYAx8nDQyhX+HUbenu7sf+o9obsDA6mFN9PKQycCdtUl 5yLg== X-Gm-Message-State: ABy/qLao84ixM5v2O2k6sMfhNKtW8PutKl0XGZCJJkFZeGfn+BnquynZ fAt58dtYEcFqVX55VIoe26HsuyKOprSbllyOVzgXdg== X-Google-Smtp-Source: APBJJlFNgkC+iO2A7O8wEMIBjHVPvRHL3/QEuLDUTSINm1VQ3DVP3tomTfIMafZSP0XZQ85n7W9AZA== X-Received: by 2002:a5d:9c57:0:b0:786:463b:2ceb with SMTP id 23-20020a5d9c57000000b00786463b2cebmr2339814iof.11.1689257130828; Thu, 13 Jul 2023 07:05:30 -0700 (PDT) Received: from localhost.localdomain (75-166-135-140.hlrn.qwest.net. [75.166.135.140]) by smtp.gmail.com with ESMTPSA id n13-20020a02a90d000000b0042b7b76b29fsm1841336jam.174.2023.07.13.07.05.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jul 2023 07:05:30 -0700 (PDT) Date: Thu, 13 Jul 2023 08:05:26 -0600 Subject: [PATCH v3 1/6] Minor cleanups in py-inferior.exp MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230713-py-inf-fixes-30615-v3-1-26a024f30553@adacore.com> References: <20230713-py-inf-fixes-30615-v3-0-26a024f30553@adacore.com> In-Reply-To: <20230713-py-inf-fixes-30615-v3-0-26a024f30553@adacore.com> To: gdb-patches@sourceware.org X-Mailer: b4 0.12.3 X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, 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: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Tom Tromey via Gdb-patches Reply-To: Tom Tromey Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" While working on this series, I noticed a some oddities in py-inferior.exp. One is an obviously incorrect comment, and the others are confusing test names. This patch fixes these. --- gdb/testsuite/gdb.python/py-inferior.exp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gdb/testsuite/gdb.python/py-inferior.exp b/gdb/testsuite/gdb.python/py-inferior.exp index 58deece5d5f..576c2b716e6 100644 --- a/gdb/testsuite/gdb.python/py-inferior.exp +++ b/gdb/testsuite/gdb.python/py-inferior.exp @@ -206,8 +206,7 @@ if [isnative] { } } -# Test Inferior is_valid. This must always be the last test in -# this testcase as it kills the inferior. +# Test Inferior is_valid. with_test_prefix "is_valid" { gdb_py_test_silent_cmd "python inf_list = gdb.inferiors()" "get initial list" 1 @@ -247,7 +246,7 @@ with_test_prefix "is_valid" { gdb_test "python print (inf_list\[1\].is_valid())" "True" \ "check inferior validity 3" - gdb_test_no_output "remove-inferiors 2" "remove-inferiors 3" + gdb_test_no_output "remove-inferiors 2" gdb_test "python print (inf_list\[0\].is_valid())" "True" \ "check inferior validity 4" @@ -318,7 +317,7 @@ with_test_prefix "selected_inferior" { "print a connection object" gdb_test "inferior 1" ".*" "switch back to first inferior" - gdb_test_no_output "remove-inferiors 3" "remove second inferior" + gdb_test_no_output "remove-inferiors 3" } # Test repr()/str() -- 2.40.1