summaryrefslogtreecommitdiff
path: root/tests/uniconv/test-u16-strconv-to-enc.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/uniconv/test-u16-strconv-to-enc.c')
-rw-r--r--tests/uniconv/test-u16-strconv-to-enc.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/uniconv/test-u16-strconv-to-enc.c b/tests/uniconv/test-u16-strconv-to-enc.c
index c8b9df0aac..35a8eb7b96 100644
--- a/tests/uniconv/test-u16-strconv-to-enc.c
+++ b/tests/uniconv/test-u16-strconv-to-enc.c
@@ -24,11 +24,21 @@
#include "uniconv.h"
#include <errno.h>
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define SIZEOF(array) (sizeof (array) / sizeof (array[0]))
-#define ASSERT(expr) if (!(expr)) abort ();
+#define ASSERT(expr) \
+ do \
+ { \
+ if (!(expr)) \
+ { \
+ fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
+ abort (); \
+ } \
+ } \
+ while (0)
int
main ()