From dd385a413c92d53a1f792011e1029d7d68e19c6c Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 29 Aug 2023 23:02:42 +0200 Subject: tests: fix everything broken by the pipe change god, those tests are a mess. so are esemaphores. --- src/cmd/tests/tests.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/cmd/tests/tests.h') 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) -- cgit v1.2.3