projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test-stddef: test for (some) offsetof bugs
[gnulib.git]
/
tests
/
test-lstat.h
diff --git
a/tests/test-lstat.h
b/tests/test-lstat.h
index
a47eb09
..
f120f4c
100644
(file)
--- a/
tests/test-lstat.h
+++ b/
tests/test-lstat.h
@@
-1,5
+1,5
@@
/* Test of lstat() function.
/* Test of lstat() function.
- Copyright (C) 2008, 2009 Free Software Foundation, Inc.
+ Copyright (C) 2008, 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
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
@@
-28,9
+28,6
@@
test_lstat_func (int (*func) (char const *, struct stat *), bool print)
struct stat st1;
struct stat st2;
struct stat st1;
struct stat st2;
- /* Remove any leftovers from a previous partial run. */
- ASSERT (system ("rm -rf " BASE "*") == 0);
-
/* Test for common directories. */
ASSERT (func (".", &st1) == 0);
ASSERT (func ("./", &st2) == 0);
/* Test for common directories. */
ASSERT (func (".", &st1) == 0);
ASSERT (func ("./", &st2) == 0);
@@
-74,8
+71,8
@@
test_lstat_func (int (*func) (char const *, struct stat *), bool print)
{
ASSERT (unlink (BASE "file") == 0);
if (print)
{
ASSERT (unlink (BASE "file") == 0);
if (print)
- fputs ("skipping test: symlinks not supported on this file system\n",
- stderr);
+
fputs ("skipping test: symlinks not supported on this file system\n",
+
stderr);
return 77;
}
ASSERT (symlink (BASE "file", BASE "link2") == 0);
return 77;
}
ASSERT (symlink (BASE "file", BASE "link2") == 0);