X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-glob.c;h=ab2d531194dd9f29494affd1e56e4bc4ecba857e;hb=aae58b6f7bd0f7c2f38e05eb005b76c164c5c1f7;hp=750d9d8877addbc53bd1b319e60b799bfa5baaaa;hpb=441aa3044f43e5572f58c354f01e6bc070acd5c7;p=gnulib.git diff --git a/tests/test-glob.c b/tests/test-glob.c index 750d9d887..ab2d53119 100644 --- a/tests/test-glob.c +++ b/tests/test-glob.c @@ -1,5 +1,5 @@ /* Test of glob/globfree functions. - Copyright (C) 2009 Free Software Foundation, Inc. + Copyright (C) 2009, 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 @@ -20,22 +20,14 @@ #include -#include -#include +#include "signature.h" +SIGNATURE_CHECK (glob, int, (char const *, int, int (*) (char const *, int), + glob_t *)); +SIGNATURE_CHECK (globfree, void, (glob_t *)); + #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 GL_NO_SUCH_FILE "/gnulib-magic-does-not-exist"