summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2015-02-11 14:55:13 +0100
committerJan Kratochvil <jan.kratochvil@redhat.com>2015-02-11 14:55:13 +0100
commit211e7f3c26b39159df2dedd8198148cec60307f9 (patch)
tree969eb5cfca4d770acd96ce9f9efa5aa704326fe7
parentcf3f71d273c607ecd1e912ce9fe8121da320c6a9 (diff)
downloadbinutils-gdb-211e7f3c26b39159df2dedd8198148cec60307f9.tar.gz
framefilter quit: New test
It definitely does not test all the RETURN_MASK_ERROR cases. But it tests at least two of them. gdb/testsuite/ChangeLog 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com> * gdb.python/py-framefilter.exp (pagination quit - *): New tests.
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.python/py-framefilter.exp13
2 files changed, 17 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index f08b89a4f4b..47e271deeff 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * gdb.python/py-framefilter.exp (pagination quit - *): New tests.
+
2015-01-26 Wei-cheng Wang <cole945@gmail.com>
Backport from mainline:
diff --git a/gdb/testsuite/gdb.python/py-framefilter.exp b/gdb/testsuite/gdb.python/py-framefilter.exp
index 1a0c7508de5..2f81abed403 100644
--- a/gdb/testsuite/gdb.python/py-framefilter.exp
+++ b/gdb/testsuite/gdb.python/py-framefilter.exp
@@ -74,6 +74,19 @@ gdb_test "bt full" \
".*#0.*cnuf_dne.*h = 9.*f = 42.*g = 19.*bar = $hex \"Inside block x2\".*d = 15.*e = 14.*foo = $hex \"Inside block\".*str = $hex \"The End\".*st2 = $hex \"Is Near\".*b = 12.*c = 5.*" \
"bt full with filters"
+# Test pagination can be aborted even for frame filters.
+gdb_test_no_output "set height 5" "pagination quit - set height limited"
+foreach bttype [list "bt" "bt full"] {
+ set test "pagination quit - $bttype"
+ gdb_test_multiple "$bttype" $test {
+ -re "$pagination_prompt$" {
+ pass $test
+ }
+ }
+ gdb_test "q" "^q\r\nQuit" "pagination quit - $bttype - q"
+}
+gdb_test_no_output "set height unlimited" "pagination quit - set height unlimited"
+
gdb_continue_to_breakpoint "Backtrace end breakpoint"
# Test set/show