mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-18 12:24:38 +08:00
Test "set width/height -1"
As a follow up to the previous commit, add a test for "set width/height -1", to make sure we don't overflow in readline with negative values either. gdb/testsuite/ChangeLog: 2019-02-27 Pedro Alves <palves@redhat.com> * gdb.base/page.exp: Add tests for "set width/height -1".
This commit is contained in:
parent
8ed252144a
commit
5862844d0f
@ -1,3 +1,7 @@
|
||||
2019-02-27 Pedro Alves <palves@redhat.com>
|
||||
|
||||
* gdb.base/page.exp: Add tests for "set width/height -1".
|
||||
|
||||
2019-02-27 Pedro Alves <palves@redhat.com>
|
||||
|
||||
* gdb.base/page.exp: Add tests for "set/show width/height" with
|
||||
|
@ -118,6 +118,9 @@ foreach_with_prefix size {"0" "0x80000000" "unlimited"} {
|
||||
"Number of lines gdb thinks are in a page is unlimited\\."
|
||||
}
|
||||
|
||||
gdb_test "set width -1" "integer -1 out of range"
|
||||
gdb_test "set height -1" "integer -1 out of range"
|
||||
|
||||
gdb_exit
|
||||
return 0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user