diff options
Diffstat (limited to 'tests/test-snprintf-posix.c')
-rw-r--r-- | tests/test-snprintf-posix.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/test-snprintf-posix.c b/tests/test-snprintf-posix.c index 3913515e48..bbdf3e351c 100644 --- a/tests/test-snprintf-posix.c +++ b/tests/test-snprintf-posix.c @@ -24,11 +24,21 @@ #include <stdio.h> #include <stddef.h> +#include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> -#define ASSERT(expr) if (!(expr)) abort (); +#define ASSERT(expr) \ + do \ + { \ + if (!(expr)) \ + { \ + fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ + abort (); \ + } \ + } \ + while (0) #include "test-snprintf-posix.h" |