X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-fbufmode.c;h=22eb14d478e4a5a544187c996ef6c95ce83ba7b1;hb=cda784e7600c26148888f21fc1300d041b5404bd;hp=4fe8e755c4f9254f6d8343d314edd319306bb1e7;hpb=57fdfd3f8ec62b105c53bcdf6f127c35c7fe7391;p=gnulib.git diff --git a/tests/test-fbufmode.c b/tests/test-fbufmode.c index 4fe8e755c..22eb14d47 100644 --- a/tests/test-fbufmode.c +++ b/tests/test-fbufmode.c @@ -1,5 +1,5 @@ /* Test of fbufmode() function. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2011 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,18 +21,8 @@ #include "fbufmode.h" #include -#include - -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) + +#include "macros.h" #define TESTFILE "t-fbufmode.tmp" @@ -63,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. */