From: Wei Liu Subject: Re: [PATCH 9/9] libxl: event tests: test_timedereg: Fix rc handling Date: Fri, 10 Jul 2015 11:46:01 +0100 Message-ID: <20150710104601.GQ26853@zion.uk.xensource.com> References: <1436464077-2752-1-git-send-email-ian.jackson@eu.citrix.com> <1436464077-2752-10-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1436464077-2752-10-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: xen-devel@lists.xensource.com, Wei Liu , Ian Campbell List-Id: xen-devel@lists.xenproject.org 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 Acked-by: Wei Liu > --- > 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