diff options
Diffstat (limited to 'src/init')
-rw-r--r-- | src/init/tests/main.c | 11 | ||||
-rw-r--r-- | src/init/tests/main.h | 2 |
2 files changed, 7 insertions, 6 deletions
diff --git a/src/init/tests/main.c b/src/init/tests/main.c index 48134d0..7890ca3 100644 --- a/src/init/tests/main.c +++ b/src/init/tests/main.c @@ -12,11 +12,8 @@ static void run_forked(void (*fn)()) { } -void test_all(void) { - run_forked(test_await); -} -void test_await(void) { +static void test_await(void) { int ret; // regular exit()s @@ -39,3 +36,9 @@ void test_await(void) { printf("await returned: %x\n", ret); printf("await: no more children\n"); } + + + +void test_all(void) { + run_forked(test_await); +} diff --git a/src/init/tests/main.h b/src/init/tests/main.h index 4899bd5..9a2afd2 100644 --- a/src/init/tests/main.h +++ b/src/init/tests/main.h @@ -1,5 +1,3 @@ #pragma once void test_all(void); - -void test_await(void); |