diff options
author | dzwdz | 2021-10-15 19:11:51 +0200 |
---|---|---|
committer | dzwdz | 2021-10-15 19:11:51 +0200 |
commit | 710ddbffea55f06f91cb0325b900f0ffda77795f (patch) | |
tree | e04af1ab7a09407de4e5ab795818f4bc28f696c3 /src/init | |
parent | bbb7e4c4515bcf0e81c931406fdf398356280bd3 (diff) |
init/tests: make the test(s) static
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); |