summaryrefslogtreecommitdiff
path: root/modules/stat-tests
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-09-15 07:11:40 -0600
committerEric Blake <ebb9@byu.net>2009-09-19 13:15:51 -0600
commit5794d89bd24981d2974f1504a04bf09b7efaf251 (patch)
tree8c3ae40fcca6f8ac9ddd256d744f3fb69f4ac52f /modules/stat-tests
parent27fc6b8b3c176038ff7216a6af6dfba82de17537 (diff)
downloadgnulib-5794d89bd24981d2974f1504a04bf09b7efaf251.tar.gz
stat: new module, for mingw bug
Depending on the current directory, either stat(".",buf) or stat("./",buf) would fail on mingw. * modules/stat: New file. * lib/stat.c: Likewise. * m4/stat.m4 (gl_FUNC_STAT): Likewise. * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses. * modules/sys_stat (Makefile.am): Use them. * lib/sys_stat.in.h (stat): Declare replacement. * lib/openat.c (fstatat): Deal with lstat and stat being function macros. * modules/openat (Depends-on): Add inline. * MODULES.html.sh (systems lacking POSIX:2008): Mention module. * doc/posix-functions/stat.texi (stat): Likewise. * modules/stat-tests: New test. * tests/test-stat.c: Likewise. Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'modules/stat-tests')
-rw-r--r--modules/stat-tests12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/stat-tests b/modules/stat-tests
new file mode 100644
index 0000000000..3d31b5262a
--- /dev/null
+++ b/modules/stat-tests
@@ -0,0 +1,12 @@
+Files:
+tests/test-stat.c
+
+Depends-on:
+pathmax
+same-inode
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-stat
+check_PROGRAMS += test-stat