X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-argmatch.c;h=c7f157fdb429abf4273ee0e1f49e2217897cf62f;hb=dcfa509347541cf4a44f7e5be5fc74398d8a8199;hp=363033fa691f26fb77b74dfdc8776ae7a472164c;hpb=9793b3ecf4f25f192b314758b35c398a1045711e;p=gnulib.git diff --git a/tests/test-argmatch.c b/tests/test-argmatch.c index 363033fa6..c7f157fdb 100644 --- a/tests/test-argmatch.c +++ b/tests/test-argmatch.c @@ -1,5 +1,5 @@ /* Test of exact or abbreviated match search. - Copyright (C) 1990, 1998-1999, 2001-2007 Free Software Foundation, Inc. + Copyright (C) 1990, 1998-1999, 2001-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 @@ -27,14 +27,15 @@ #include "progname.h" #define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ + do \ + { \ + if (!(expr)) \ + { \ fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ + fflush (stderr); \ + abort (); \ + } \ + } \ while (0) /* Some packages define ARGMATCH_DIE and ARGMATCH_DIE_DECL in , and