diff options
author | dzwdz | 2021-10-15 18:43:21 +0200 |
---|---|---|
committer | dzwdz | 2021-10-15 18:43:21 +0200 |
commit | e9ae64908cb116174d2d18be3d727d988e96108b (patch) | |
tree | d7064ac13509eae75071653d340c3e5e9bc75c9a /src/init/tests/main.c | |
parent | 42bf65918f96d43e9ce8a7287a9508f44fe670d5 (diff) |
init: only run tests when prompted from the shell
Diffstat (limited to 'src/init/tests/main.c')
-rw-r--r-- | src/init/tests/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 |