| 46 | #define THREAD_TIMESLICE 5 |
| 47 | |
| 48 | static void test_event_init(void) |
| 49 | { |
| 50 | rt_err_t result; |
| 51 | |
| 52 | result = rt_event_init(&static_event, "event", RT_IPC_FLAG_PRIO); |
| 53 | if (result != RT_EOK) |
| 54 | { |
| 55 | uassert_false(1); |
| 56 | } |
| 57 | result = rt_event_detach(&static_event); |
| 58 | if (result != RT_EOK) |
| 59 | { |
| 60 | uassert_false(1); |
| 61 | } |
| 62 | |
| 63 | result = rt_event_init(&static_event, "event", RT_IPC_FLAG_FIFO); |
| 64 | if (result != RT_EOK) |
| 65 | { |
| 66 | uassert_false(1); |
| 67 | } |
| 68 | result = rt_event_detach(&static_event); |
| 69 | if (result != RT_EOK) |
| 70 | { |
| 71 | uassert_false(1); |
| 72 | } |
| 73 | |
| 74 | uassert_true(1); |
| 75 | } |
| 76 | |
| 77 | static void test_event_detach(void) |
| 78 | { |
nothing calls this directly
no test coverage detected