Mercurial > hg > octave-lojdl > gnulib-hg
comparison tests/unistdio/test-ulc-vasnprintf3.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 ulc_vasnprintf() function in an UTF-8 locale. | 1 /* Test of ulc_vasnprintf() function in an UTF-8 locale. |
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. |
32 do \ | 32 do \ |
33 { \ | 33 { \ |
34 if (!(expr)) \ | 34 if (!(expr)) \ |
35 { \ | 35 { \ |
36 fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ | 36 fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ |
37 fflush (stderr); \ | |
37 abort (); \ | 38 abort (); \ |
38 } \ | 39 } \ |
39 } \ | 40 } \ |
40 while (0) | 41 while (0) |
41 | 42 |