From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: [pushed 1/2] [gdb/testsuite] Extend gdb.tui/tuiterm.exp
Date: Fri, 16 Oct 2026 11:18:39 +0200 [thread overview]
Message-ID: <20261016091840.4148802-2-tdevries@suse.de> (raw)
In-Reply-To: <20261016091840.4148802-1-tdevries@suse.de>
Add a few more corner-case tests in gdb.tui/tuiterm.exp.
Tested on x86_64-linux.
---
gdb/testsuite/gdb.tui/tuiterm.exp | 52 +++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
diff --git a/gdb/testsuite/gdb.tui/tuiterm.exp b/gdb/testsuite/gdb.tui/tuiterm.exp
index 7c3aabaf6ea..4966800c0bb 100644
--- a/gdb/testsuite/gdb.tui/tuiterm.exp
+++ b/gdb/testsuite/gdb.tui/tuiterm.exp
@@ -177,6 +177,18 @@ proc test_insert_characters { } {
} 0 1
}
+proc test_insert_characters_2 { } {
+ # As in test_insert_characters, but start at initial state.
+ Term::_move_cursor 0 0
+ Term::_csi_@ 20
+ check "insert characters 4" {
+ " "
+ "ijklmnop"
+ "qrstuvwx"
+ "yz01234 "
+ } 0 0
+}
+
proc test_pan_down { } {
Term::_move_cursor 1 2
Term::_csi_S
@@ -204,6 +216,18 @@ proc test_pan_down { } {
} 1 2
}
+proc test_pan_down_2 { } {
+ # As in test_pan_down, but start at initial state.
+ Term::_move_cursor 0 0
+ Term::_csi_S 100
+ check "pan down, initial state, excessive arg" {
+ " "
+ " "
+ " "
+ " "
+ } 0 0
+}
+
proc test_pan_up { } {
Term::_move_cursor 1 2
Term::_csi_T
@@ -231,6 +255,18 @@ proc test_pan_up { } {
} 1 2
}
+proc test_pan_up_2 { } {
+ # As in test_pan_up, but start at initial state.
+ Term::_move_cursor 0 0
+ Term::_csi_T 100
+ check "pan up, initial state, excessive arg" {
+ " "
+ " "
+ " "
+ " "
+ } 0 0
+}
+
proc test_cursor_up { } {
Term::_move_cursor 2 3
@@ -457,6 +493,18 @@ proc test_delete_line { } {
} 3 0
}
+proc test_delete_line_2 { } {
+ # Excessive param at initial state.
+ Term::_move_cursor 3 2
+ Term::_csi_M 100
+ check "delete line, excessive param" {
+ "abcdefgh"
+ "ijklmnop"
+ " "
+ " "
+ } 3 2
+}
+
proc test_delete_character { } {
Term::_move_cursor 2 1
@@ -742,6 +790,7 @@ foreach_with_prefix test {
test_linefeed_scroll
test_carriage_return
test_insert_characters
+ test_insert_characters_2
test_cursor_up
test_cursor_down
test_cursor_forward
@@ -753,6 +802,7 @@ foreach_with_prefix test {
test_erase_in_display
test_erase_in_line
test_delete_line
+ test_delete_line_2
test_delete_character
test_erase_character
test_repeat
@@ -760,7 +810,9 @@ foreach_with_prefix test {
test_insert_line
test_insert_line_2
test_pan_up
+ test_pan_up_2
test_pan_down
+ test_pan_down_2
} {
run_one_test_small $test
}
--
2.51.0
next prev parent reply other threads:[~2026-10-16 9:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-16 9:18 [pushed 0/2] [gdb/testsuite] More tuiterm maintenance Tom de Vries
2026-10-16 9:18 ` Tom de Vries [this message]
2026-10-16 9:18 ` [pushed 2/2] [gdb/testsuite] Factor out Term::_copy_lines Tom de Vries
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261016091840.4148802-2-tdevries@suse.de \
--to=tdevries@suse.de \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox