Re: GDB testsuite questions
Doug Evans <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <CADPb22TcgqL+01cG60g8nTOF63i6abc2LCXUa4hYnuu5jgPWZg@mail.gmail.com> |
On Tue, Nov 11, 2014 at 12:08 PM, Andreas Schwab <[email protected]> wrote: > David Taylor <[email protected]> writes: > >> . how to grab part of the each of the responses to multiple gdb commands >> and do arithmetric on the result to decide whether the test failed or >> passed. > > Use the expect_out variable, there are various examples of its use in > the testsuite. Yeah. testsuite/lib/gdb.exp:get_integer_valueof is my canonical example when I need boilerplate to cut-n-paste from.