From 3206124fb3af2481fc45e705f7bba3ea56016433 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 7 Jul 2024 12:59:39 -0400 Subject: tests: Simplify unit tests with a global variable It's a little awkward to thread the test result through manually; much easier to just make bfs_check() update a global variable. --- tests/ioq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/ioq.c') diff --git a/tests/ioq.c b/tests/ioq.c index 99c98a2..4e1209e 100644 --- a/tests/ioq.c +++ b/tests/ioq.c @@ -71,7 +71,6 @@ static void check_ioq_push_block(void) { ioq_destroy(ioq); } -bool check_ioq(void) { +void check_ioq(void) { check_ioq_push_block(); - return true; } -- cgit v1.2.3