aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2019-02-27 18:48:37 +0000
committerPedro Alves <palves@redhat.com>2019-02-27 18:48:37 +0000
commit5862844d0f443b9f65e8dd0d85c43f8818d3f355 (patch)
tree42bb80233c5f86eba6ef122b0ff391fb905b96ef /gdb
parent8ed252144a29fb6370b828d84419d5c59d23dae2 (diff)
downloadgdb-5862844d0f443b9f65e8dd0d85c43f8818d3f355.zip
gdb-5862844d0f443b9f65e8dd0d85c43f8818d3f355.tar.gz
gdb-5862844d0f443b9f65e8dd0d85c43f8818d3f355.tar.bz2
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".
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.base/page.exp3
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index b5177c7..29b2832 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,9 @@
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
"infinite" values.
diff --git a/gdb/testsuite/gdb.base/page.exp b/gdb/testsuite/gdb.base/page.exp
index 8f1698c..68d94b3 100644
--- a/gdb/testsuite/gdb.base/page.exp
+++ b/gdb/testsuite/gdb.base/page.exp
@@ -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