summaryrefslogtreecommitdiff
path: root/src/init/tests/main.c
diff options
context:
space:
mode:
authordzwdz2021-10-15 19:11:51 +0200
committerdzwdz2021-10-15 19:11:51 +0200
commit710ddbffea55f06f91cb0325b900f0ffda77795f (patch)
treee04af1ab7a09407de4e5ab795818f4bc28f696c3 /src/init/tests/main.c
parentbbb7e4c4515bcf0e81c931406fdf398356280bd3 (diff)
init/tests: make the test(s) static
Diffstat (limited to 'src/init/tests/main.c')
-rw-r--r--src/init/tests/main.c11
1 files changed, 7 insertions, 4 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);
+}