projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
isnan: port to VAX
[gnulib.git]
/
tests
/
test-lstat.c
diff --git
a/tests/test-lstat.c
b/tests/test-lstat.c
index
74a4fd2
..
d520193
100644
(file)
--- a/
tests/test-lstat.c
+++ b/
tests/test-lstat.c
@@
-1,5
+1,5
@@
/* Test of lstat() function.
/* 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
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 <unistd.h>
#include "same-inode.h"
#include <unistd.h>
#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"
#define BASE "test-lstat.t"
@@
-63,5
+53,8
@@
do_lstat (char const *name, struct stat *st)
int
main (void)
{
int
main (void)
{
+ /* Remove any leftovers from a previous partial run. */
+ ignore_value (system ("rm -rf " BASE "*"));
+
return test_lstat_func (do_lstat, true);
}
return test_lstat_func (do_lstat, true);
}