comparison tests/unistdio/test-u32-vasprintf1.c @ 9889:0be6f1ab456d

Flush the standard error stream before aborting.
author Bruno Haible <bruno@clisp.org>
date Fri, 11 Apr 2008 16:31:39 +0200
parents bbbbbf4cd1c5
children e8d2c6fc33ad
comparison
equal deleted inserted replaced
9888:4552418ad371 9889:0be6f1ab456d
1 /* Test of u32_vasprintf() function. 1 /* Test of u32_vasprintf() function.
2 Copyright (C) 2007 Free Software Foundation, Inc. 2 Copyright (C) 2007-2008 Free Software Foundation, Inc.
3 3
4 This program is free software: you can redistribute it and/or modify 4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by 5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 3 of the License, or 6 the Free Software Foundation; either version 3 of the License, or
7 (at your option) any later version. 7 (at your option) any later version.
35 do \ 35 do \
36 { \ 36 { \
37 if (!(expr)) \ 37 if (!(expr)) \
38 { \ 38 { \
39 fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ 39 fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
40 fflush (stderr); \
40 abort (); \ 41 abort (); \
41 } \ 42 } \
42 } \ 43 } \
43 while (0) 44 while (0)
44 45