This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


On Mon, 2007-04-02 at 16:57 +0200, Denis PILAT wrote:
> In testsuite/gdb.base/setshow.exp, after "set height 100", it could 
> occur that following commands require user interaction to proceed like:
> ---Type <return> to continue, or q <return> to quit---
> (At least it's the case for our gdb in "show user" since we have defined 
> a lot of user command.)
> 
> Attach is a patch that fixes a problem in this test.
> We could also add
>     gdb_test "set height 0" "" "set height 0"
> or increase the height to a very large number, but I prefer to reset 
> height to 0 like done in gdb.exp.
> 

I think it's valid, but I wonder why you didn't just use gdb_test,
instead of gdb_expect?  Are you expecting the command to fail or
time out or something?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]