X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-rmdir.c;h=8a24a688a43ab10133aced5dd4cb4d84434313ae;hb=647e7023ce05b720e9de6ccd4b8eb62836bcfb7b;hp=908b0e66611b744f00c26a2f4a09851c5e405d24;hpb=441aa3044f43e5572f58c354f01e6bc070acd5c7;p=gnulib.git diff --git a/tests/test-rmdir.c b/tests/test-rmdir.c index 908b0e666..8a24a688a 100644 --- a/tests/test-rmdir.c +++ b/tests/test-rmdir.c @@ -1,5 +1,5 @@ /* Tests of rmdir. - Copyright (C) 2009 Free Software Foundation, Inc. + Copyright (C) 2009-2013 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 (rmdir, int, (char const *)); + #include #include #include @@ -27,17 +30,8 @@ #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-rmdir.t" @@ -46,5 +40,8 @@ int main (void) { + /* Remove any leftovers from a previous partial run. */ + ignore_value (system ("rm -rf " BASE "*")); + return test_rmdir_func (rmdir, true); }