/* Wait until an event matching the mask is posted, or count other events
are posted. Returns 1 if the matching event is posted, 0 otherwise.
*/
-int wait_until_n(struct test *tc, enum event_type mask, int count,
+bool wait_until_n(struct test *tc, enum event_type mask, int count,
struct event *ev)
{
while (count--) {
void wait_for(struct test *tc, enum event_type mask, struct event *ev);
void wait_for_n(struct test *tc, enum event_type mask, int count,
struct event *ev);
-int wait_until_n(struct test *tc, enum event_type mask, int count,
- struct event *ev);
+bool wait_until_n(struct test *tc, enum event_type mask, int count,
+ struct event *ev);
int send_fd_event(struct test *tc, int fd);
int send_libxl_callback_event(struct test *tc, int rc);
int send_libxl_event(struct test *tc, libxl_event_type type);