From patchwork Fri Jul 14 17:06:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 72717 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 AD248385770D for ; Fri, 14 Jul 2023 17:07:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AD248385770D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1689354423; 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=jME1ow9khnSGNTttEHgUn0i/h8PRtaVlPoeU2iYOQNBL+xiI8t7YB1V45q1fz3573 +ANsFWVHpYtP/ctfmwywEuJ/aBNz2nqkx5jK6kjDSqGkWu+9J2MVaUkebLq71JgWGR seakkCRErbqSCo7CN1l6ABLIjVX8wTNmsXtikdc4= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by sourceware.org (Postfix) with ESMTPS id 884603858C52 for ; Fri, 14 Jul 2023 17:06:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 884603858C52 Received: by mail-io1-xd2a.google.com with SMTP id ca18e2360f4ac-78362f57500so87077539f.3 for ; Fri, 14 Jul 2023 10:06:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689354395; x=1691946395; 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=g4bQa0d2ZuzIgOLM+zfUxAcM9kKLOaCWNTehmllR3pSbU5chapzWEbJMhm4OsTJCnO YdK5sbrivOzGwtx8Id3I2MqWfkC3IG/YdCrcIV+Dn98XyL+IUiBFWQKkd0fDAMEYGPP9 shLY83/dlPtgdmbI0rj/An84mk6AgpiMgiRqKQsc/nYBDwYm6z7vAuI5dVCe5aLDo1Jx 8edSwoHpW/G1t7LgDzbQwgnB3k73681FPiNF8NDA6ACKzyaaOEcsZz9X+6GcAR5Do+Ov 6hUlGmOh6+SaZdCq+RUixc23qEwobTiDAZz4QJ97Sqmrg8T7ugLq7KG95lybfMY17iOv jdug== X-Gm-Message-State: ABy/qLaIPqryuacoEyuoQZsABthUDK0ML9xoWNj5nGg8t4G4ug9nqjY6 ioyWDLjFpM/gMB0Q5H4eSwGo4EKCaGrskhxArz1sxA== X-Google-Smtp-Source: APBJJlHTy83RqeaHmKxxtMlU2rDmt79ebltbdUOG48i2fUfEZicKp/BhpvyLwnFN192itaiNsTrhNg== X-Received: by 2002:a6b:fb03:0:b0:783:572c:9caa with SMTP id h3-20020a6bfb03000000b00783572c9caamr5643251iog.0.1689354395630; Fri, 14 Jul 2023 10:06:35 -0700 (PDT) Received: from localhost.localdomain (75-166-135-140.hlrn.qwest.net. [75.166.135.140]) by smtp.gmail.com with ESMTPSA id cz8-20020a0566384a0800b0042bb09e9345sm2667476jab.90.2023.07.14.10.06.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jul 2023 10:06:35 -0700 (PDT) Date: Fri, 14 Jul 2023 11:06:25 -0600 Subject: [PATCH v4 1/6] Minor cleanups in py-inferior.exp MIME-Version: 1.0 Message-Id: <20230714-py-inf-fixes-30615-v4-1-9189744d8547@adacore.com> References: <20230714-py-inf-fixes-30615-v4-0-9189744d8547@adacore.com> In-Reply-To: <20230714-py-inf-fixes-30615-v4-0-9189744d8547@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: , X-Patchwork-Original-From: Tom Tromey via Gdb-patches From: Tom Tromey Reply-To: Tom Tromey Errors-To: gdb-patches-bounces+patchwork=sourceware.org@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()