Mercurial > hg > octave-kai > gnulib-hg
comparison tests/test-striconveha.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 | daf5ba9fe2d9 |
children | e8d2c6fc33ad |
comparison
equal
deleted
inserted
replaced
9888:4552418ad371 | 9889:0be6f1ab456d |
---|---|
1 /* Test of character set conversion with error handling and autodetection. | 1 /* Test of character set conversion with error handling and autodetection. |
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. |
34 do \ | 34 do \ |
35 { \ | 35 { \ |
36 if (!(expr)) \ | 36 if (!(expr)) \ |
37 { \ | 37 { \ |
38 fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ | 38 fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ |
39 fflush (stderr); \ | |
39 abort (); \ | 40 abort (); \ |
40 } \ | 41 } \ |
41 } \ | 42 } \ |
42 while (0) | 43 while (0) |
43 | 44 |