X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-link.c;h=42749eb79ba1effff662f4df85def84c0d160fac;hb=46f5f314f34a08c9305758482d7d2fdb0e999d09;hp=a77ffe76d707d5face792142f8b3fff8398c9d95;hpb=c26924950a3a546112e35c99aad85c0855f4664a;p=gnulib.git diff --git a/tests/test-link.c b/tests/test-link.c index a77ffe76d..42749eb79 100644 --- a/tests/test-link.c +++ b/tests/test-link.c @@ -1,9 +1,9 @@ /* Test of link() function. - Copyright (C) 2009 Free Software Foundation, Inc. + Copyright (C) 2009-2014 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,6 +18,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (link, int, (char const *, char const *)); + #include #include #include @@ -27,27 +30,18 @@ #include #include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - fflush (stderr); \ - abort (); \ - } \ - } \ - while (0) +#include "ignore-value.h" +#include "macros.h" #define BASE "test-link.t" #include "test-link.h" int -main (int argc, char **argv) +main (void) { /* Remove any garbage left from previous partial runs. */ - ASSERT (system ("rm -rf " BASE "*") == 0); + ignore_value (system ("rm -rf " BASE "*")); return test_link (link, true); }