qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC PATCH] tests: replace rem = sleep(time) with g_tim


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [RFC PATCH] tests: replace rem = sleep(time) with g_timer
Date: Fri, 11 Jan 2019 16:41:41 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1

On 11/01/19 16:28, Alex Bennée wrote:
>> Why not g_usleep?  It already does a while loop around nanosleep (which
>> returns the remaining time in the wait, like select but unlike sleep and
>> poll).
> Yeah I'm testing that now. However I have managed to trigger:
> 
>   ERROR:tests/test-qht-par.c:20:test_qht: assertion failed (rc == 0): (35584 
> == 0)

I think that's a good old SIGSEGV (0x8B00).

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]