aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2022-02-01 14:24:15 +0000
committerAndrew Burgess <aburgess@redhat.com>2022-04-03 15:31:47 +0100
commitb1ac644a05245de73b84c23fa6a24eb039a727d7 (patch)
tree30605b69c7f1b2515afe9ed5302ea170f5353a02
parent51b72f73e9b52c2c137b6cee20712ec1fc117beb (diff)
downloadbinutils-b1ac644a05245de73b84c23fa6a24eb039a727d7.zip
binutils-b1ac644a05245de73b84c23fa6a24eb039a727d7.tar.gz
binutils-b1ac644a05245de73b84c23fa6a24eb039a727d7.tar.bz2
gdb/testsuite: some additional tests in gdb.tui/scroll.exp
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.
-rw-r--r--gdb/testsuite/gdb.tui/scroll.exp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.tui/scroll.exp b/gdb/testsuite/gdb.tui/scroll.exp
index 4eaee0c..c23cd2b 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"
}