Re: MI testsuite to use PTY for inferior

Nick Roberts
2005-07-30T22:47:42Z

Bob Rossi writes:
> > This seems to try to open a new pty even if inferior_pty is false. Shouldn't
> > the condition, here and elsewhere, be:
> >
> > if { $inferior_pty } {
>
> I think this could be a style issue, but I'm not sure. I only create the
> inferior_pty variable if mi_gdb_start's INFERIOR_PTY is true. Then I
> check in later calls to see if the variable inferior_pty exists via
> 'info exists inferior_pty'.

Perhaps I've not understood the context but what if somenone uses:

if {[mi_gdb_start false]} {

as a condition for a test?

Nick