X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-lstat.c;h=d520193f31aaf5f4cbe4d3e1f1926ec9db01c2f2;hb=5191b3546cfb6c163228c23f214e325ddf60d46f;hp=74a4fd2acf37d16c86f037fca4448003aac8cc69;hpb=89ae4589dd58d12e7cbcf0e92c1d828c1e430f97;p=gnulib.git diff --git a/tests/test-lstat.c b/tests/test-lstat.c index 74a4fd2ac..d520193f3 100644 --- a/tests/test-lstat.c +++ b/tests/test-lstat.c @@ -1,5 +1,5 @@ /* Test of lstat() function. - Copyright (C) 2008, 2009 Free Software Foundation, Inc. + Copyright (C) 2008-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 @@ -35,18 +35,8 @@ SIGNATURE_CHECK (lstat, int, (char const *, struct stat *)); #include #include "same-inode.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-lstat.t" @@ -63,5 +53,8 @@ do_lstat (char const *name, struct stat *st) int main (void) { + /* Remove any leftovers from a previous partial run. */ + ignore_value (system ("rm -rf " BASE "*")); + return test_lstat_func (do_lstat, true); }