tst_test: make reap_children() part of the test API
Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
diff --git a/lib/tst_test.c b/lib/tst_test.c
index 1bd2619..a94bccd 100644
--- a/lib/tst_test.c
+++ b/lib/tst_test.c
@@ -287,7 +287,7 @@
}
}
-static void reap_children(void)
+void tst_reap_children(void)
{
int status;
pid_t pid;
@@ -647,7 +647,7 @@
exit(0);
}
- reap_children();
+ tst_reap_children();
if (results_equal(&saved_results, results))
tst_brk(TBROK, "Test haven't reported results!");
@@ -662,7 +662,7 @@
exit(0);
}
- reap_children();
+ tst_reap_children();
if (results_equal(&saved_results, results))
tst_brk(TBROK, "Test %i haven't reported results!", i);