X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-getcwd.c;h=2502b02cecd9d1607ec5f5d5a238ed58ee41bd1d;hb=f283cf4e5364da816fdd6e376110035b04facae9;hp=debace7df6468bbeed8b5eca976c7f828aea490d;hpb=441aa3044f43e5572f58c354f01e6bc070acd5c7;p=gnulib.git diff --git a/tests/test-getcwd.c b/tests/test-getcwd.c index debace7df..2502b02ce 100644 --- a/tests/test-getcwd.c +++ b/tests/test-getcwd.c @@ -1,9 +1,9 @@ /* Test of getcwd() function. - 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 - the Free Software Foundation; either version 2 of the License, or + the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -18,21 +18,14 @@ #include +#include "signature.h" +SIGNATURE_CHECK (getcwd, char *, (char *, size_t)); + #include #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" int main (int argc, char **argv)