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: [PATCH 3/4] testsuite: Disable tests when logging



> On 25 Apr 2019, at 15:36, Tom Tromey <tom@tromey.com> wrote:
> 
>>>>>> "Alan" == Alan Hayward <Alan.Hayward@arm.com> writes:
> 
> Alan> 	* gdb.base/breakpoint-in-ro-region.exp: Disable when debugging.
> [...]
> 
> My first reaction to this was negative, but after thinking about it a
> little I came around.  I think my view is that enabling debug logging
> for the test suite is primarily a debugging tool, and so it's fine --
> especially for tests that are already enabling debugging -- for it not
> to work universally.

I went through the same thought process.

If someone really cares about running with debug for a particular test,
then it should be easy enough to change the test to only skip the part
where debug messages are checked. I didn’t think it was worth all the
work to do that to all of them now.

> 
> Alan> +# Do not run if gdb debug is enabled
> 
> Normally comments should have a "." at the end.
> It would perhaps be good if the comments explained why.
> 
> Alan> +# Do not run if gdb debug is enabled - it interferes with the command history.
> 
> ... like this one.  Is that reasonable?
> 

Will do.

> thanks,
> Tom


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