[PATCH][gdb/testsuite] Add check-readmore

Tom de Vries tdevries@suse.de
Tue Aug 31 13:45:46 GMT 2021


[ was: Re: [RFC][gdb/testsuite] Add check-readmore ]

On 8/30/21 5:30 PM, Tom de Vries wrote:

>> If not, I'd just go
>> with the simplest.  I could imagine a modified method 2 version where we
>> read in a loop though, until we reached "count" bytes or the file
>> descriptor has no more data to offer (still with a 10ms wait between
>> each read, to give the writer time to produce more data).
> 
> Agreed, there could be some benefit in doing this in a loop.  It would
> add a benefit similar to increasing the timeout, without the drawback of
> waiting unnecessary while the buffer is already full.

Implemented the loop approach.

Thanks,
- Tom

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-gdb-testsuite-Add-check-readmore.patch
Type: text/x-patch
Size: 11108 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/gdb-patches/attachments/20210831/226dd438/attachment.bin>


More information about the Gdb-patches mailing list