summaryrefslogtreecommitdiff
path: root/source/test/unittests
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-01-01 20:08:31 +0100
committerMitya Selivanov <automainint@guattari.tech>2023-01-01 20:08:31 +0100
commit86d86462b420f098ee34a022cffd922e3192dabe (patch)
tree20770c3ba0d29ef920ada35ca8609a28e4d0294f /source/test/unittests
parente6451dae35a962fba59a450b2a22d80e64399fe4 (diff)
downloadkit-86d86462b420f098ee34a022cffd922e3192dabe.zip
Remove ANSI C option; add pedantic gcc flag
Diffstat (limited to 'source/test/unittests')
-rw-r--r--source/test/unittests/async_function.test.c22
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));
}