tests/monitor-flags: extend timeout on second wait call

This commit is contained in:
Philippe Gerum 2019-08-09 12:05:03 +02:00
parent f50f26c99e
commit 49fc9571a2
1 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,8 @@ static void *flags_receiver(void *arg)
__Tcall_assert(ret, evl_put_sem(&p->sem));
/* Sender should have sent 0x12121212. */
evl_read_clock(EVL_CLOCK_MONOTONIC, &now);
timespec_add_ns(&timeout, &now, 400000000); /* 400ms */
if (!__Tcall(ret, evl_timedwait_flags(&p->flags, &timeout, &bits)))
goto fail;