summaryrefslogtreecommitdiff
path: root/modules/openat-tests
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-09-18 18:06:31 -0600
committerEric Blake <ebb9@byu.net>2009-09-19 13:38:41 -0600
commit3a5041b1c62c2b7c829f47bec2f1789c59844b6c (patch)
tree4bdba64a43ebe472eebfc40fde320b8641897793 /modules/openat-tests
parent6ca71ffe395184749d849f5bba4771d6b2fbb7d6 (diff)
downloadgnulib-3a5041b1c62c2b7c829f47bec2f1789c59844b6c.tar.gz
test-fstatat: new test, to expose Solaris 9 bugs
Share the stat and lstat tests with fstatat. * tests/test-stat.c (main): Factor guts... * tests/test-stat.h (test_stat_func): ...into new file. * tests/test-lstat.c (main): Factor guts... * tests/test-lstat.h (test_lstat_func): ...into new file. * tests/test-fstatat.c: New file. * modules/stat-tests (Files): Add test-stat.h. * modules/lstat-tests (Files): Add test-lstat.h. (Depends-on): Add stdbool. * modules/openat-tests (Depends-on): Add pathmax. (Files): Add test-lstat.h, test-stat.h, test-fstatat.c. (Makefile.am): Run new test. Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'modules/openat-tests')
-rw-r--r--modules/openat-tests9
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/openat-tests b/modules/openat-tests
index 54d0c61d7b..42ae6e8b1f 100644
--- a/modules/openat-tests
+++ b/modules/openat-tests
@@ -1,15 +1,20 @@
Files:
+tests/test-lstat.h
tests/test-rmdir.h
+tests/test-stat.h
+tests/test-fstatat.c
tests/test-openat.c
tests/test-unlinkat.c
Depends-on:
+pathmax
configure.ac:
AC_CHECK_FUNCS_ONCE([symlink])
Makefile.am:
-TESTS += test-openat test-unlinkat
-check_PROGRAMS += test-openat test-unlinkat
+TESTS += test-fstatat test-openat test-unlinkat
+check_PROGRAMS += test-fstatat test-openat test-unlinkat
+test_fstatat_LDADD = $(LDADD) @LIBINTL@
test_openat_LDADD = $(LDADD) @LIBINTL@
test_unlinkat_LDADD = $(LDADD) @LIBINTL@