X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-iconv.c;h=0a0c2aab14c21b431efe3655e3f21c68706b8c54;hb=e52fa80b73cf84d7e5472aeb43ead4e25dbd5989;hp=00157dad13b4cddaeee2d0536ed66677b9643114;hpb=bda4ada81a177eda7d07d1e0f265bcd0a32bae1c;p=gnulib.git diff --git a/tests/test-iconv.c b/tests/test-iconv.c index 00157dad1..0a0c2aab1 100644 --- a/tests/test-iconv.c +++ b/tests/test-iconv.c @@ -17,19 +17,27 @@ /* Written by Bruno Haible , 2007. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #if HAVE_ICONV # include #endif #include +#include #include #include -#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 ()