Commit 6acf665f authored by Jan Kiszka's avatar Jan Kiszka

lib/alchemy/testsuite: Add event test case for EV_ALL bug

This fails so far due to a bug in the event wait implementations, both
with cobalt and mercury.
Signed-off-by: Jan Kiszka's avatarJan Kiszka <>
parent 17675f75
......@@ -63,6 +63,7 @@ static void foreground_task(void *arg)
int main(int argc, char *const argv[])
unsigned int flags;
int ret;
traceobj_init(&trobj, argv[0], 0);
......@@ -70,6 +71,14 @@ int main(int argc, char *const argv[])
ret = rt_event_create(&event, "EVENT", 0, EV_FIFO);
traceobj_check(&trobj, ret, 0);
ret = rt_event_signal(&event, 0x3);
traceobj_check(&trobj, ret, 0);
ret = rt_event_wait(&event, 0x1, &flags, EV_ALL, TM_NONBLOCK);
traceobj_check(&trobj, ret, 0);
traceobj_assert(&trobj, flags == 0x1);
ret = rt_event_clear(&event, 0x3, NULL);
traceobj_check(&trobj, ret, 0);
ret = rt_task_create(&t_bgnd, "BGND", 0, 20, 0);
traceobj_check(&trobj, ret, 0);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment