diff options
-rw-r--r-- | include/tests.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/tests.h b/include/tests.h index ed2b409..4ca21f8 100644 --- a/include/tests.h +++ b/include/tests.h | |||
@@ -7,8 +7,11 @@ | |||
7 | 7 | ||
8 | #define fail(fmt, args...) \ | 8 | #define fail(fmt, args...) \ |
9 | do { \ | 9 | do { \ |
10 | fprintf(stderr, "\n!! TEST FAILURE " fmt "\n at %s:%d (%s)\n", \ | 10 | fprintf(stderr, "\n!! TEST FAILURE " fmt \ |
11 | ## args, __FILE__, __LINE__, __FUNCTION__); \ | 11 | "\n at %s:%d (%s)" \ |
12 | "\n in task PID=%d\n", \ | ||
13 | ## args, __FILE__, __LINE__, __FUNCTION__, \ | ||
14 | getpid()); \ | ||
12 | fflush(stderr); \ | 15 | fflush(stderr); \ |
13 | exit(200); \ | 16 | exit(200); \ |
14 | } while (0) | 17 | } while (0) |