This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 6/6] framefilter quit: New test
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: Phil Muldoon <pmuldoon at redhat dot com>
- Date: Sat, 07 Feb 2015 15:45:51 +0100
- Subject: [PATCH 6/6] framefilter quit: New test
- Authentication-results: sourceware.org; auth=none
- References: <20150207144501 dot 14897 dot 90709 dot stgit at host1 dot jankratochvil dot net>
Hi,
it definitely does not test all the RETURN_MASK_ERROR cases. But it tests at
least two of them.
Jan
gdb/testsuite/ChangeLog
2015-02-06 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.python/py-framefilter.exp (pagination quit - *): New tests.
---
gdb/testsuite/gdb.python/py-framefilter.exp | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/gdb/testsuite/gdb.python/py-framefilter.exp b/gdb/testsuite/gdb.python/py-framefilter.exp
index 1a0c750..2f81abe 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