X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-fbufmode.c;h=da32834e39ab548d83d108b0bbf95fe6d87c011e;hb=7abd07c81cfa2e0922bda8d0dbea67a31a8d853c;hp=1bf820e672b68594ca0eda03bce54e811e602e2c;hpb=e220635fc952c63b533873f2af39ec76aed4b4e3;p=gnulib.git diff --git a/tests/test-fbufmode.c b/tests/test-fbufmode.c index 1bf820e67..da32834e3 100644 --- a/tests/test-fbufmode.c +++ b/tests/test-fbufmode.c @@ -1,5 +1,5 @@ /* Test of fbufmode() function. - Copyright (C) 2007-2008 Free Software Foundation, Inc. + Copyright (C) 2007-2010 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 @@ -21,19 +21,8 @@ #include "fbufmode.h" #include -#include - -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - fflush (stderr); \ - abort (); \ - } \ - } \ - while (0) + +#include "macros.h" #define TESTFILE "t-fbufmode.tmp" @@ -64,7 +53,7 @@ main () { /* mingw's setvbuf implements _IOLBF the same way as _IOFBF. */ ASSERT (fbufmode (fp) == _IOLBF - || fbufmode (fp) == _IOFBF); + || fbufmode (fp) == _IOFBF); } /* This setvbuf call can fail, e.g. on HP-UX 11. */