Re: [RFA] re-initialize height to 0 during setshow.exp

Denis PILAT
2007-04-03T14:53:24Z

Daniel Jacobowitz wrote:
> Please always use gdb_test. If you don't want it to be a test, use ""
> for the test name - it won't be counted (at least, not unless someting
> goes wrong).
>
>
I didn't know this possibility.
Here is the new patch, OK for commit ?

--
Denis

2007-04-03 Denis Pilat <denis.pilat@st.com>

* gdb.base/setshow.exp: Reset height after having set it to 100.

Index: gdb/testsuite/gdb.base/setshow.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/setshow.exp,v
retrieving revision 1.5
diff -u -p -r1.5 setshow.exp
--- gdb/testsuite/gdb.base/setshow.exp 9 Jan 2007 17:59:11 -0000 1.5
+++ gdb/testsuite/gdb.base/setshow.exp 3 Apr 2007 14:50:13 -0000
@@ -155,6 +155,8 @@ gdb_test "show environment FOOBARBAZ" "F
gdb_test "set height 100" "" "set height 100"
#test show height 100
gdb_test "show height" "Number of lines gdb thinks are in a page is 100..*" "show height"
+# back to infinite height to avoid pagers
+gdb_test "set height 0" "" ""
#test set history expansion on
gdb_test "set history expansion on" "" "set history expansion on"
#test show history expansion on