Mercurial > hg > octave-lojdl > gnulib-hg
comparison tests/test-rbtree_oset.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 ordered set data type implementation. | 1 /* Test of ordered set data type implementation. |
2 Copyright (C) 2006-2007 Free Software Foundation, Inc. | 2 Copyright (C) 2006-2008 Free Software Foundation, Inc. |
3 Written by Bruno Haible <bruno@clisp.org>, 2006. | 3 Written by Bruno Haible <bruno@clisp.org>, 2006. |
4 | 4 |
5 This program is free software: you can redistribute it and/or modify | 5 This program is free software: you can redistribute it and/or modify |
6 it under the terms of the GNU General Public License as published by | 6 it under the terms of the GNU General Public License as published by |
7 the Free Software Foundation; either version 3 of the License, or | 7 the Free Software Foundation; either version 3 of the License, or |
39 do \ | 39 do \ |
40 { \ | 40 { \ |
41 if (!(expr)) \ | 41 if (!(expr)) \ |
42 { \ | 42 { \ |
43 fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ | 43 fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ |
44 fflush (stderr); \ | |
44 abort (); \ | 45 abort (); \ |
45 } \ | 46 } \ |
46 } \ | 47 } \ |
47 while (0) | 48 while (0) |
48 #define RANDOM(n) (rand () % (n)) | 49 #define RANDOM(n) (rand () % (n)) |