summaryrefslogtreecommitdiff
path: root/src/init/tests/main.h
diff options
context:
space:
mode:
authordzwdz2022-07-09 18:35:07 +0200
committerdzwdz2022-07-09 18:35:07 +0200
commitfcfb57c12ce4544017098092a66f8427584c1879 (patch)
treed149bb1c51265ae0dbf683125ee980829e53c0f6 /src/init/tests/main.h
parentdad8b261ac7898f4d8cf537ad288ad6a1a74d124 (diff)
init/test: mostly clean up the existing tests
Diffstat (limited to 'src/init/tests/main.h')
-rw-r--r--src/init/tests/main.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/init/tests/main.h b/src/init/tests/main.h
index 97678e3..47c2507 100644
--- a/src/init/tests/main.h
+++ b/src/init/tests/main.h
@@ -1,6 +1,8 @@
#pragma once
+void stress_all(void);
void test_all(void);
+
void test_pipe(void);
#ifdef TEST_MACROS
@@ -8,7 +10,7 @@ void test_pipe(void);
#define argify(str) str, sizeof(str) - 1
#define test_fail() do { \
printf("\033[31m" "TEST FAILED: %s:%xh\n" "\033[0m", __func__, __LINE__); \
- return; \
+ _syscall_exit(0); \
} while (0)
#define assert(cond) if (!(cond)) test_fail();