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

Re: [Xen-devel] [PATCH 9/9] libxl: event tests: test_timedereg: Fix rc handling



On Thu, Jul 09, 2015 at 06:47:57PM +0100, Ian Jackson wrote:
> In 31c836f4 "libxl: events: Permit timeouts to signal ao abort",
> timeout callbacks take an extra rc argument.
> 
> In that patch the wrong assertion is made about the rc in
> test_timedereg's `occurs' callback.  Fix this to make the test pass
> again.
> 
> Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>

Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx>

> ---
>  tools/libxl/libxl_test_timedereg.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tools/libxl/libxl_test_timedereg.c 
> b/tools/libxl/libxl_test_timedereg.c
> index c464663..a567db6 100644
> --- a/tools/libxl/libxl_test_timedereg.c
> +++ b/tools/libxl/libxl_test_timedereg.c
> @@ -67,7 +67,7 @@ static void occurs(libxl__egc *egc, libxl__ev_time *ev,
>      int off = ev - &et[0][0];
>      LOG(DEBUG,"occurs[%d][%d] seq=%d rc=%d", off/NTIMES, off%NTIMES, seq, 
> rc);
>  
> -    assert(!rc);
> +    assert(rc == ERROR_TIMEDOUT);
>  
>      switch (seq) {
>      case 0:
> -- 
> 1.7.10.4

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.