From e9ae64908cb116174d2d18be3d727d988e96108b Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 15 Oct 2021 18:43:21 +0200 Subject: init: only run tests when prompted from the shell --- src/init/tests/main.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/init/tests/main.c') diff --git a/src/init/tests/main.c b/src/init/tests/main.c index ed02e5f..3b2d2ce 100644 --- a/src/init/tests/main.c +++ b/src/init/tests/main.c @@ -22,6 +22,11 @@ static void read_file(const char *path, size_t len) { _syscall_close(fd); } +void test_all(void) { + test_fs(); + test_await(); +} + void test_fs(void) { if (!_syscall_fork()) { /* run the "test" in a child process to not affect the fs view of the -- cgit v1.2.3