diff options
author | dzwdz | 2023-08-29 23:02:42 +0200 |
---|---|---|
committer | dzwdz | 2023-08-29 23:02:42 +0200 |
commit | dd385a413c92d53a1f792011e1029d7d68e19c6c (patch) | |
tree | 134fa61d71f6894e37a1b890004cfcb2d96ea17b /src/cmd/tests/tests.h | |
parent | e43939bcc6123e02314aa403eef94d5ace441f7f (diff) |
tests: fix everything broken by the pipe change
god, those tests are a mess. so are esemaphores.
Diffstat (limited to 'src/cmd/tests/tests.h')
-rw-r--r-- | src/cmd/tests/tests.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd/tests/tests.h b/src/cmd/tests/tests.h index 5037e1a..bbf5309 100644 --- a/src/cmd/tests/tests.h +++ b/src/cmd/tests/tests.h @@ -5,7 +5,7 @@ #define TMPFILEPATH "/tmp/.test_internal" -void run_test(void (*fn)()); +void run_test_inner(void (*fn)(), const char *s); void r_k_fdlimit(void); void r_k_fs(void); @@ -35,3 +35,5 @@ int forkpipe(FILE **f, hid_t *h); exit(0); \ } while (0) #define test(cond) if (!(cond)) test_fail(); + +#define run_test(fn) run_test_inner(fn, #fn) |