From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id ICFQKLfY/2FJBwAAWB0awg (envelope-from ) for ; Sun, 06 Feb 2022 09:18:31 -0500 Received: by simark.ca (Postfix, from userid 112) id A30AF1F3C6; Sun, 6 Feb 2022 09:18:31 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.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 89F881EE1A for ; Sun, 6 Feb 2022 09:18:30 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 294D63858414 for ; Sun, 6 Feb 2022 14:18:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 294D63858414 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1644157110; 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=WQxPkIhqhO3FRNQnbXLwXg81k8lEb2yqWU9hmHMl+F5QUK+iydBN6PiMV8XsyaiOk DyMNdy9YhvKT36CeOtZpdBkFTIDS7XR/mH3G/ygBDdbvs160QIORvsPuMr31JSP8L3 MOlw5sYdVbBM1KFk9Q+9P4LQ591dQcdOoRfq2jOo= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id B1C113858407 for ; Sun, 6 Feb 2022 14:13:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B1C113858407 Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-164-rHsbvae5NXqeTJ7lKnCYVw-1; Sun, 06 Feb 2022 09:13:25 -0500 X-MC-Unique: rHsbvae5NXqeTJ7lKnCYVw-1 Received: by mail-ed1-f71.google.com with SMTP id l19-20020a056402231300b0040f2d6b4ec4so2173271eda.0 for ; Sun, 06 Feb 2022 06:13:24 -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=sjz0WZu/kNPLQ3NYkpWzw/vqHmY8H5UMKBSDniC7mKlYT2U0KPvBtK9hDB0kYzFuEJ b0sfSJ3KU5DwdETfa0HTOoOKYiUqTqD49MWG2kd+wPOhcLhl3wyaZb1BwCPxEeZddk36 uEHfqaMqvZiKZz2nJpT/JSpC4ybBSwjgT3pyWKziI6AePO5XwbavgJ4RQ7xD+laMUExW 4JWNf0N3/xE3p8/qdkRAMooeTW3oLgSx6KwRgCabyU3TTJRM5A1hzT5nnnGrZKrh9lJQ 0czSxFaKJVLo/qXA6O0spv+eCH7eW7ub2sb3wFBKceRhVOJo3Dx/EIg5kkeSO4fqNAvk a9rA== X-Gm-Message-State: AOAM530qzOSACP1qTGhaHPU9RukjNIaYqu1BgsYVeG2jGz8iOOQapqx8 Nzitj5eY39wL858ukaqsc9xJcCTSX3iZxhzKFhC/IHkNB5eloI5ByErVMrhBm9odaUqov5gwx/1 e/6nhRiG7l4D6IfAR9qGhVuZsBh1ytqnCmYy3pf4PGszkMluXq2Mw8hvGhv/EnTUS76i+zhxMKg == X-Received: by 2002:a05:6402:5211:: with SMTP id s17mr9037024edd.26.1644156803780; Sun, 06 Feb 2022 06:13:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJxmjO5WGnWERbjRBkivs7fAn1Rq+Kl6b/WCQ7hEKKa9eFGFE3RrdyU5I9qsdLpUZoCd8VFXAQ== X-Received: by 2002:a05:6402:5211:: with SMTP id s17mr9037013edd.26.1644156803632; Sun, 06 Feb 2022 06:13:23 -0800 (PST) Received: from localhost (92.40.178.42.threembb.co.uk. [92.40.178.42]) by smtp.gmail.com with ESMTPSA id k7sm2610308ejp.182.2022.02.06.06.13.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Feb 2022 06:13:23 -0800 (PST) To: gdb-patches@sourceware.org Subject: [PATCHv2 13/15] gdb/testsuite: some additional tests in gdb.tui/scroll.exp Date: Sun, 6 Feb 2022 14:12:51 +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