X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-unlink.c;h=4f7de5fc6998b13ebbaa3c355d2a4e231a6c4ee6;hb=3b905e0ad791b750d0a471c90ecaacf2345a39c3;hp=0c8dc6f721d506df9777e7bbda4c830e0ea8a96e;hpb=7eba2f98240cd9a9c0cc81b4ebb7103bbe8630a7;p=gnulib.git diff --git a/tests/test-unlink.c b/tests/test-unlink.c index 0c8dc6f72..4f7de5fc6 100644 --- a/tests/test-unlink.c +++ b/tests/test-unlink.c @@ -1,5 +1,5 @@ /* Tests of unlink. - 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 (unlink, int, (char const *)); + #include #include #include @@ -29,25 +32,18 @@ #include #include "unlinkdir.h" - -#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-unlink.t" #include "test-unlink.h" int -main () +main (void) { + /* Remove any leftovers from a previous partial run. */ + ignore_value (system ("rm -rf " BASE "*")); + return test_unlink_func (unlink, true); }