From patchwork Fri Jul 7 15:07:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 72302 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 C3A213850ADB for ; Fri, 7 Jul 2023 15:08:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C3A213850ADB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1688742507; bh=fNCaO4oOFL4eltZRxkQ/1LOU2GCqnnrgUoB3rrhvBNo=; 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=VCeAR0uQTske7ErwEV8ek506U6aaTuZ1StzYbfMHntH7RXMQICtPuQi1n4lRaB7sb gJEK1qTlixx/lQbVAsFVtHyDPmALf8/I4gT2rICHSc68BkgMwEa3avT69c64quwNP6 XEXjlu+IfWnEI7JYk7tiEujtsACSzVhof5gSHjEY= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) by sourceware.org (Postfix) with ESMTPS id 09E463852AC8 for ; Fri, 7 Jul 2023 15:08:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 09E463852AC8 Received: by mail-io1-xd2d.google.com with SMTP id ca18e2360f4ac-78666994bc2so72052239f.0 for ; Fri, 07 Jul 2023 08:08:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688742480; x=1691334480; 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=fNCaO4oOFL4eltZRxkQ/1LOU2GCqnnrgUoB3rrhvBNo=; b=SoR997fzBD1LTyeRx8HWxSly9sp6ak7ZfMZDX95pnB/8Gi9F7XYuEKaHyGsv/6P70L fbCm8ae207/e80CdZXIX31OR26fKLztbnqL2Fo+ByuVK8+zVNadPLyxV27h3wrnMhBBb arXQ73aCb99IHNolU2mGoa6SqmCHDls6Gotc7cUW52CHuzIImpahA5UawThhsjAXAIUp InuGiYfcCF6/ZmdJZbupk07WtJUZsO7EmeLEuP0jmkPAuTuHwB5XTHmBxgcG0/La8doE Fu8MMWM3VCJ6Pqj+yQfb2DresTfOop2FCOrPDd5yTR8wdhG7ou+glgxnJNHWzhRetnl/ KInA== X-Gm-Message-State: ABy/qLZDEEWuUz42KDxK6cJaRBBfMxluJIFHQlzlMYWTauhnfG9qAhro 1KcKecTTirBTbnAbToG53vPtw6635hQKbIn12c/Zkw== X-Google-Smtp-Source: APBJJlForKNpmLPrYSc+KeHDNih+WeeoMXKqw+dSnSXdS9ailJuveyDcAoRZRaXBbwaFM+KM4u2r9w== X-Received: by 2002:a6b:dc16:0:b0:783:74a5:b73f with SMTP id s22-20020a6bdc16000000b0078374a5b73fmr5376747ioc.13.1688742480120; Fri, 07 Jul 2023 08:08:00 -0700 (PDT) Received: from localhost.localdomain (75-166-135-140.hlrn.qwest.net. [75.166.135.140]) by smtp.gmail.com with ESMTPSA id b16-20020a5ea710000000b0076ffebfc9fasm1340650iod.47.2023.07.07.08.07.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jul 2023 08:07:59 -0700 (PDT) Date: Fri, 07 Jul 2023 09:07:57 -0600 Subject: [PATCH 1/5] Minor cleanups in py-inferior.exp MIME-Version: 1.0 Message-Id: <20230707-py-inf-fixes-30615-v1-1-7792ab559530@adacore.com> References: <20230707-py-inf-fixes-30615-v1-0-7792ab559530@adacore.com> In-Reply-To: <20230707-py-inf-fixes-30615-v1-0-7792ab559530@adacore.com> To: gdb-patches@sourceware.org X-Mailer: b4 0.12.3 X-Spam-Status: No, score=-11.1 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 couple of oddities in py-inferior.exp. One is an obviously incorrect comment, and the other is a confusing test name. This patch fixes these. --- gdb/testsuite/gdb.python/py-inferior.exp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gdb/testsuite/gdb.python/py-inferior.exp b/gdb/testsuite/gdb.python/py-inferior.exp index 58deece5d5f..33bc27ee86d 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" "remove-inferiors 2" gdb_test "python print (inf_list\[0\].is_valid())" "True" \ "check inferior validity 4"