X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-rmdir.c;h=6957efe1dcfd034732cde1255eb7ff3d603ddc44;hb=78023f0fedd00d3aaf32c747f7cee2c76a942e48;hp=44f5d7204fda6cc64badf4d09bf0158bee01dd28;hpb=89ae4589dd58d12e7cbcf0e92c1d828c1e430f97;p=gnulib.git diff --git a/tests/test-rmdir.c b/tests/test-rmdir.c index 44f5d7204..6957efe1d 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-2011 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 @@ -30,17 +30,8 @@ SIGNATURE_CHECK (rmdir, int, (char const *)); #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" @@ -49,5 +40,8 @@ SIGNATURE_CHECK (rmdir, int, (char const *)); int main (void) { + /* Remove any leftovers from a previous partial run. */ + ignore_value (system ("rm -rf " BASE "*")); + return test_rmdir_func (rmdir, true); }