We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f67043 commit 3d7bff6Copy full SHA for 3d7bff6
events/source/tests/tests.c
@@ -852,6 +852,21 @@ void user_allocated_event_test()
852
equeue_destroy(&q);
853
}
854
855
+void id_cycle()
856
+{
857
+ equeue_t q;
858
+ int err = equeue_create(&q, 10000000);
859
+ test_assert(!err);
860
+
861
+ for (int i = 0; i < 300; i++) {
862
+ int id = equeue_call(&q, pass_func, 0);
863
+ test_assert(id != 0);
864
+ test_assert(equeue_cancel(&q, id));
865
+ }
866
867
+ equeue_destroy(&q);
868
+}
869
870
int main()
871
{
872
printf("beginning tests...\n");
@@ -881,6 +896,7 @@ int main()
881
896
test_run(break_request_cleared_on_timeout);
882
897
test_run(sibling_test);
883
898
test_run(user_allocated_event_test);
899
+ test_run(id_cycle);
884
900
printf("done!\n");
885
901
return test_failure;
886
902
0 commit comments