furi_event_test.c 817 B

123456789101112131415161718192021222324252627282930313233
  1. #include <furi.h>
  2. #include "minunit.h"
  3. static void furi_concurent_app(void* p) {
  4. Event* event = p;
  5. signal_event(event);
  6. furiac_exit(NULL);
  7. }
  8. void test_furi_event() {
  9. mu_assert(false, "please reimplement or delete test");
  10. /*Event event;
  11. mu_check(init_event(&event));
  12. // The event should not be signalled right after creation
  13. mu_check(!wait_event_with_timeout(&event, 100));
  14. // Create second app
  15. FuriApp* second_app __attribute__((unused)) =
  16. furiac_start(furi_concurent_app, "furi concurent app", (void*)&event);
  17. // The event should be signalled now
  18. mu_check(wait_event_with_timeout(&event, 100));
  19. // The event should not be signalled once it's processed
  20. mu_check(!wait_event_with_timeout(&event, 100));
  21. mu_check(delete_event(&event));*/
  22. }