[pushed,gdb/testsuite] Generate long string in gdb.base/page.exp
Commit Message
I noticed in gdb.base/page.exp:
...
set fours [string repeat 4 40]
...
but then shortly afterwards:
...
[list 1\r\n 2\r\n 3\r\n 444444444444444444444444444444]
...
Summarize the long string in the same way using string repeat:
...
[list 1\r\n 2\r\n 3\r\n [string repeat 4 30]]
...
Tested on x86_64-linux.
---
gdb/testsuite/gdb.base/page.exp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
base-commit: 58d047ac2597d7b9e89e1723aaf67dfe51f8117b
@@ -90,7 +90,7 @@ gdb_test_no_output "set width 30"
send_gdb "printf \"$str\"\n"
gdb_expect_list "paged count for interrupt" \
".*$pagination_prompt" \
- [list 1\r\n 2\r\n 3\r\n 444444444444444444444444444444]
+ [list 1\r\n 2\r\n 3\r\n [string repeat 4 30]]
gdb_test "q" "Quit" "quit while paging"