This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Fixing gdb.base/completion.exp (PR testsuite/12649)
On 04/27/2011 05:23 PM, Pedro Alves wrote:
> What are these problems exactly?
Duh. Now I'm not sure what I've meant when writing this. But
you cannot, for instance, use the '\t' in gdb_test "blahblah\t",
since this will end up with "ERROR: Undefined command".
> I also wonder what's the rationale for the sleeps in the
> current implementation?
Probably some imperfect way to avoid races--so the buffer would
be read at once after that sleep.
> An idea would be for the test to exercise all supported completion
> methods (using a convenience procedure, not duplicating
> the tests!).
That would be nice indeed. But only if we'd keep it at the same time
as simple as possible. Thanks,
Marek