From patchwork Tue Jul 11 16:14:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 72502 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 C0DAA3857711 for ; Tue, 11 Jul 2023 16:15:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C0DAA3857711 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1689092101; 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=jQwOWwzuC1dOL+Uj6vn9pSQ4TxxECTQrizOqxvONTxFuZMb/tY+C6/4kqCKrie616 f0EZYLiP5xLk/BMltv7MHY41+MMNbPZ2zhrfyfttqId7mExyaYMAlPOUkBLg71YPJY +sFndqWOfP63FbCuo9esEjHO3Hg4kQLc2sKJ4+0w= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) by sourceware.org (Postfix) with ESMTPS id 384253858D20 for ; Tue, 11 Jul 2023 16:14:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 384253858D20 Received: by mail-io1-xd35.google.com with SMTP id ca18e2360f4ac-7835ffc53bfso128168139f.1 for ; Tue, 11 Jul 2023 09:14:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689092048; x=1691684048; 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=MFsZqCe86Tqnwu1ku4jYWbmOD/Sb/0bB9NvEMJbM7f8lexPPIyK7BQrdyMEyQBf/00 /VAWutVrlfsU8LYviqBiyQfGPG0mvNP5x2b+8WiT3uEsXkibEt1ybhp1ezXUPos7sW/K GWO+nVUNGWH6KVnS+QZCiKTStokZSlQwIm+hzWq6YNwI1fG0H0Xsx503UgYuTwShO2BV 8iR1L63nqMkcp5oaaLMe0MkwgBgUcdgNzeatVk8MY3pMqXEj9UEfUHDIzsQy0hPSwDB3 lhr+KK4yiw4yEnox7Unk3oWB7aUkuLX3D4H4vD/l9YnmVdxIsQ3ykmroePpiHcZfjkx4 ivWA== X-Gm-Message-State: ABy/qLYiHIx3ZFXGYNFGy8Xs1h2FMjQghteli+mBBSIzOawdGYUmU/uS s6UhSkAGWr5WXfoM4Gf+uYkDKZRkyfSaGphyEGyAZQ== X-Google-Smtp-Source: APBJJlGluggRecxpGtRa/+FBaXtwnrQaDPtF/4dR1v50qxLN1yBRFGJ5jRoB34A9tca3w2HOOUObKw== X-Received: by 2002:a05:6602:3e90:b0:783:58f2:b8f2 with SMTP id el16-20020a0566023e9000b0078358f2b8f2mr14526288iob.6.1689092048348; Tue, 11 Jul 2023 09:14:08 -0700 (PDT) Received: from localhost.localdomain (75-166-135-140.hlrn.qwest.net. [75.166.135.140]) by smtp.gmail.com with ESMTPSA id x3-20020a6bfe03000000b0077e40979b41sm702370ioh.45.2023.07.11.09.14.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jul 2023 09:14:08 -0700 (PDT) Date: Tue, 11 Jul 2023 10:14:01 -0600 Subject: [PATCH v2 1/6] Minor cleanups in py-inferior.exp MIME-Version: 1.0 Message-Id: <20230711-py-inf-fixes-30615-v2-1-64a2540864e6@adacore.com> References: <20230711-py-inf-fixes-30615-v2-0-64a2540864e6@adacore.com> In-Reply-To: <20230711-py-inf-fixes-30615-v2-0-64a2540864e6@adacore.com> To: gdb-patches@sourceware.org X-Mailer: b4 0.12.3 X-Spam-Status: No, score=-11.4 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()