test: fix infinite loop in litest_wait_for_event_of_type()

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2014-09-01 12:39:38 +10:00
parent d5136c6cb9
commit 481430d8bb

View file

@ -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);