From: Peter Hutterer Date: Mon, 1 Sep 2014 02:39:38 +0000 (+1000) Subject: test: fix infinite loop in litest_wait_for_event_of_type() X-Git-Tag: 0.6.0~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=481430d8bb32e93c54a3ade4dd128506cfe831ae;p=platform%2Fupstream%2Flibinput.git test: fix infinite loop in litest_wait_for_event_of_type() Signed-off-by: Peter Hutterer --- diff --git a/test/litest.c b/test/litest.c index 47a7776a..7d064d7e 100644 --- a/test/litest.c +++ b/test/litest.c @@ -802,6 +802,7 @@ litest_wait_for_event_of_type(struct libinput *li, ...) assert(type > 0); assert(ntypes < ARRAY_LENGTH(types)); types[ntypes++] = type; + type = va_arg(args, int); } va_end(args);