projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
[gnulib.git]
/
tests
/
test-stat.h
diff --git
a/tests/test-stat.h
b/tests/test-stat.h
index
f090420
..
5409e05
100644
(file)
--- a/
tests/test-stat.h
+++ b/
tests/test-stat.h
@@
-1,5
+1,5
@@
/* Tests of stat.
/* Tests of stat.
- Copyright (C) 2009
, 2010
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
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
@@
-27,9
+27,9
@@
test_stat_func (int (*func) (char const *, struct stat *), bool print)
{
struct stat st1;
struct stat st2;
{
struct stat st1;
struct stat st2;
- char
cwd[PATH_MAX]
;
+ char
*cwd = getcwd (NULL, 0)
;
- ASSERT (
getcwd (cwd, PATH_MAX) ==
cwd);
+ ASSERT (cwd);
ASSERT (func (".", &st1) == 0);
ASSERT (func ("./", &st2) == 0);
ASSERT (SAME_INODE (st1, st2));
ASSERT (func (".", &st1) == 0);
ASSERT (func ("./", &st2) == 0);
ASSERT (SAME_INODE (st1, st2));