X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-glob.c;h=d1e4a37c34ea4460c1a80747c5ef069905c66b97;hb=93d7550462f21202b69712f3d489399963965ddd;hp=cd1ea4d9786262a6dad2c9713c4f1ea63689b366;hpb=e30d02286081804e8eeeac42c17973446fc5aa07;p=gnulib.git diff --git a/tests/test-glob.c b/tests/test-glob.c index cd1ea4d97..d1e4a37c3 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-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 @@ -20,21 +20,14 @@ #include -#include -#include - -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", \ - __FILE__, __LINE__); \ - fflush (stderr); \ - abort (); \ - } \ - } \ - while (0) +#include "signature.h" +SIGNATURE_CHECK (glob, int, (char const *, int, int (*) (char const *, int), + glob_t *)); +SIGNATURE_CHECK (globfree, void, (glob_t *)); + +#include + +#include "macros.h" #define GL_NO_SUCH_FILE "/gnulib-magic-does-not-exist"