[gdb/testsuite] Add test-case gdb.tui/long-prompt.exp
authorTom de Vries <tdevries@suse.de>
Thu, 8 Jun 2023 22:12:59 +0000 (00:12 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 8 Jun 2023 22:12:59 +0000 (00:12 +0200)
commit36078688fa9355a32939b0c856792830db6403f3
tree06005752e399ca80348d3cf95a5974db9d93fc3a
parentea70f941f9b2ccb0bbcda62496426e060da946a7
[gdb/testsuite] Add test-case gdb.tui/long-prompt.exp

I noticed that the test-suite doesn't excercise the case in
tui_redisplay_readline that height (initially 1) is changed by this call:
...
    tui_puts_internal (w, prompt, &height);
...

Add a test-case that excercises this.

Tested on x86_64-linux.
gdb/testsuite/gdb.tui/long-prompt.exp [new file with mode: 0644]