diff options
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) |