X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-symlink.c;h=23697737f5cb494fcd52549d82cad149d7eb965d;hb=94012b4fafb086f608e12e3f44ddf0202f418e6d;hp=9f39090e84a7d12a66e807c27944a5b74d39e8e0;hpb=41e61aadba3855410c5b3d97280107f51c225048;p=gnulib.git diff --git a/tests/test-symlink.c b/tests/test-symlink.c index 9f39090e8..23697737f 100644 --- a/tests/test-symlink.c +++ b/tests/test-symlink.c @@ -1,5 +1,5 @@ /* Tests of symlink. - 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,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (symlink, int, (char const *, char const *)); + #include #include #include @@ -27,27 +30,17 @@ #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" #define BASE "test-symlink.t" #include "test-symlink.h" int -main () +main (void) { /* Remove any leftovers from a previous partial run. */ - ASSERT (system ("rm -rf " BASE "*") == 0); + system ("rm -rf " BASE "*"); return test_symlink (symlink, true); }