X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-i-ring.c;h=05270d7b8ff3f4aefc0824a064b5d744ce250dee;hb=314fcbb7de94709b92edf1b68f62ca6aed8d4dbc;hp=0e0691af3b1456026c0e1e6ea3e143db9eae5940;hpb=3b9556605613bd4346c02e0e75abd8f492aff44e;p=gnulib.git diff --git a/tests/test-i-ring.c b/tests/test-i-ring.c index 0e0691af3..05270d7b8 100644 --- a/tests/test-i-ring.c +++ b/tests/test-i-ring.c @@ -1,5 +1,5 @@ /* Test the simple ring buffer. - Copyright (C) 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2006-2008 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -29,6 +29,7 @@ if (!(expr)) \ { \ fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ + fflush (stderr); \ abort (); \ } \ } \ @@ -37,9 +38,10 @@ int main () { + int o; I_ring ir; i_ring_init (&ir, -1); - int o = i_ring_push (&ir, 1); + o = i_ring_push (&ir, 1); ASSERT (o == -1); o = i_ring_push (&ir, 2); ASSERT (o == -1);