X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-glob.c;h=005b6cb26421352e63da9bb009873e755a48e4ec;hb=a77413333408e54b8d6c4e19918098794cef4b4b;hp=750d9d8877addbc53bd1b319e60b799bfa5baaaa;hpb=441aa3044f43e5572f58c354f01e6bc070acd5c7;p=gnulib.git diff --git a/tests/test-glob.c b/tests/test-glob.c index 750d9d887..005b6cb26 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-2013 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"