From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id APXIBS2FJmK2GgAAWB0awg (envelope-from ) for ; Mon, 07 Mar 2022 17:20:29 -0500 Received: by simark.ca (Postfix, from userid 112) id 155B11F3CA; Mon, 7 Mar 2022 17:20:29 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from 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 7E2261EDF0 for ; Mon, 7 Mar 2022 17:20:28 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3793E3857009 for ; Mon, 7 Mar 2022 22:20:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3793E3857009 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1646691628; bh=jElXytrdmB6V6Rp7b8XCE23bCh/5EUsNFkGl3wSHClA=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=pbDqoqCrq+yodZ6Ej+aC/Q3upZkz89W4Swof2xrrRKAD06BDxDTV8fkGPbATNXKIh KVJJ6cX4xJJV/IjP+7TSZL1UPyHOGiL8TkRsnnJlwQUnnAPWFD0zlLai/i6EI065mf 6uvsd+Rv7xriSWaX1KXxrGTM9//sZ0Iu1vnMxofY= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 9726E3857C7D for ; Mon, 7 Mar 2022 22:14:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9726E3857C7D Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-385-b28Rjc5gP4uUYbGj2AR6Mg-1; Mon, 07 Mar 2022 17:14:11 -0500 X-MC-Unique: b28Rjc5gP4uUYbGj2AR6Mg-1 Received: by mail-wr1-f72.google.com with SMTP id b9-20020a05600003c900b00203647caa11so180875wrg.5 for ; Mon, 07 Mar 2022 14:14:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jElXytrdmB6V6Rp7b8XCE23bCh/5EUsNFkGl3wSHClA=; b=cH6oxnnvdNCTAS3Njrz8tcItOz4m/oy4dyxNwv/mGtaLcixrmChY/Y8GphKb+CGLgb x3Bsv6SKG4DTdWHScCb8l7DiMMVHiD0p8Vzz0+usgxEH7rhTiVKCLxGTAui/QRFg7rh8 V8Zva+R5LFNjGrXfy3/ZVsI/WLOGd+Yw449QPFEWG5//lmVNZuiY1mgdr7ViSDYZhLLm AAWJxP2EHT91SURjDsvgft6BKazUnKXMR7c/Z3uXiDkUQxCexe8X3X5RfgM0ecTjo3Lm V6OUkGscBYYI0Vt4CiCgfZ1b0NDcQMuXR8w8p/MM8EpkkH7WnLW1BcM0E5SmfqA8TB28 TI4Q== X-Gm-Message-State: AOAM5316m5uiNIy+ipp0WfE4F10VfpS+/3riaPKgcGi72rrp4hGCLEOp 65tCWE1GUp4RQh/MjWeW/KaPA5R2sEI7Yp22G7UKie0PmN4erPrW7cd/drdlTgsBS9CXKMHZpgj Yw23kOtMEPJCFilx4SRqht8u7vsC+fQLHt7I2fDZEQv2YmFRQ1/IAEMh7mxAlKIqN9l7RrcdXng == X-Received: by 2002:adf:d210:0:b0:1f1:f999:b538 with SMTP id j16-20020adfd210000000b001f1f999b538mr4290906wrh.473.1646691249539; Mon, 07 Mar 2022 14:14:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJygZwkPDsIrq3UARYibzdODolOqcCz0pXSDMlVzMtV5rR8E8vWE0NvEVwjdAhfCL++5k1GW1w== X-Received: by 2002:adf:d210:0:b0:1f1:f999:b538 with SMTP id j16-20020adfd210000000b001f1f999b538mr4290887wrh.473.1646691249272; Mon, 07 Mar 2022 14:14:09 -0800 (PST) Received: from localhost (host86-134-151-205.range86-134.btcentralplus.com. [86.134.151.205]) by smtp.gmail.com with ESMTPSA id q124-20020a1ca782000000b00382b3260778sm506569wme.3.2022.03.07.14.14.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Mar 2022 14:14:08 -0800 (PST) To: gdb-patches@sourceware.org Subject: [PATCHv3 13/15] gdb/testsuite: some additional tests in gdb.tui/scroll.exp Date: Mon, 7 Mar 2022 22:13:45 +0000 Message-Id: X-Mailer: git-send-email 2.25.4 In-Reply-To: References: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" 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: Andrew Burgess via Gdb-patches Reply-To: Andrew Burgess Cc: Andrew Burgess Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" This commit just adds an extra check of the src window size prior to sending all the commands to gdb. We also set the cmd window height to its existing height, this (obviously) shouldn't change the window layout, which we check. My main motivation was adding the initial window layout check, the winheight and recheck are just extras. All of these test pass both before and after this commit. --- gdb/testsuite/gdb.tui/scroll.exp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gdb/testsuite/gdb.tui/scroll.exp b/gdb/testsuite/gdb.tui/scroll.exp index 4eaee0c14ee..c23cd2b9abf 100644 --- a/gdb/testsuite/gdb.tui/scroll.exp +++ b/gdb/testsuite/gdb.tui/scroll.exp @@ -55,6 +55,10 @@ Term::check_region_contents "check cmd window" 0 16 80 8 \ Term::command "tui new-layout flip cmd 1 src 1" Term::command "layout flip" +Term::check_box "src window" 0 8 80 16 +Term::command "winheight cmd 8" +Term::check_box "src window after resize" 0 8 80 16 + for {set i 10} {$i < 20} {incr i 1} { Term::command "p $i" } -- 2.25.4