diff options
Diffstat (limited to 'source/test/unittests/async_function.test.c')
-rw-r--r-- | source/test/unittests/async_function.test.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/source/test/unittests/async_function.test.c b/source/test/unittests/async_function.test.c index 320f323..6ec8825 100644 --- a/source/test/unittests/async_function.test.c +++ b/source/test/unittests/async_function.test.c @@ -142,29 +142,29 @@ TEST("coroutine generator") { TEST("coroutine status finished") { AF_CREATE(promise, test_bar); REQUIRE(!AF_FINISHED(promise)); - AF_RESUME_AND_JOIN(promise); + (void) AF_RESUME_AND_JOIN(promise); REQUIRE(!AF_FINISHED(promise)); - AF_RESUME_AND_JOIN(promise); + (void) AF_RESUME_AND_JOIN(promise); REQUIRE(AF_FINISHED(promise)); } TEST("coroutine task") { AF_CREATE(promise, test_task); - AF_RESUME_AND_JOIN(promise); + (void) AF_RESUME_AND_JOIN(promise); REQUIRE(!AF_FINISHED(promise)); - AF_RESUME_AND_JOIN(promise); + (void) AF_RESUME_AND_JOIN(promise); REQUIRE(!AF_FINISHED(promise)); - AF_RESUME_AND_JOIN(promise); + (void) AF_RESUME_AND_JOIN(promise); REQUIRE(AF_FINISHED(promise)); } TEST("coroutine nested task") { AF_CREATE(promise, test_nest_task); - AF_RESUME_AND_JOIN(promise); + (void) AF_RESUME_AND_JOIN(promise); REQUIRE(!AF_FINISHED(promise)); - AF_RESUME_AND_JOIN(promise); + (void) AF_RESUME_AND_JOIN(promise); REQUIRE(!AF_FINISHED(promise)); - AF_RESUME_AND_JOIN(promise); + (void) AF_RESUME_AND_JOIN(promise); REQUIRE(AF_FINISHED(promise)); } @@ -174,7 +174,7 @@ TEST("coroutine nested generator") { REQUIRE(AF_RESUME_AND_JOIN(promise) == 2); REQUIRE(AF_RESUME_AND_JOIN(promise) == 3); REQUIRE(!AF_FINISHED(promise)); - AF_RESUME_AND_JOIN(promise); + (void) AF_RESUME_AND_JOIN(promise); REQUIRE(AF_FINISHED(promise)); } @@ -198,7 +198,7 @@ TEST("coroutine custom execution context lazy") { AF_RESUME(promise); REQUIRE(promise.return_value == 0); REQUIRE(!AF_FINISHED(promise)); - AF_JOIN(promise); + (void) AF_JOIN(promise); REQUIRE(promise.return_value == 42); REQUIRE(AF_FINISHED(promise)); } @@ -210,7 +210,7 @@ TEST("coroutine custom execution context immediate") { AF_RESUME(promise); REQUIRE(promise.return_value == 42); REQUIRE(AF_FINISHED(promise)); - AF_JOIN(promise); + (void) AF_JOIN(promise); REQUIRE(promise.return_value == 42); REQUIRE(AF_FINISHED(promise)); } |