summaryrefslogtreecommitdiff
path: root/modules/linkat-tests
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-09-08 20:47:40 -0600
committerEric Blake <ebb9@byu.net>2009-09-23 21:04:27 -0600
commitc4194dcc56767f8f96bc005088b292f519b13910 (patch)
treee5d90eb9b6ce3dfb8cb85b2957e6f24a0e60554e /modules/linkat-tests
parentc6dc1761b3e928d2de0a6116cd933b3147ffd7d8 (diff)
downloadgnulib-c4194dcc56767f8f96bc005088b292f519b13910.tar.gz
linkat: new module
* modules/linkat: New file. * lib/at-func2.c (at_func2): Likewise. * lib/linkat.c (linkat): Likewise. * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise. * lib/openat-priv.h (at_func2): Add declaration. * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses. * modules/unistd (Makefile.am): Substitute them. * lib/unistd.in.h (linkat): Declare it. * MODULES.html.sh (systems lacking POSIX:2008): Mention module. * doc/posix-functions/linkat.texi (linkat): Likewise. * doc/posix-functions/link.texi (link): Tweak wording. * tests/test-link.c (main): Move guts... * tests/test-link.h (test_link): ...into new file. * modules/linkat-tests: New test. * tests/test-linkat.c: Likewise. * modules/link-tests (Files): Ship new file. (Depends-on): Add stdbool. Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'modules/linkat-tests')
-rw-r--r--modules/linkat-tests16
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/linkat-tests b/modules/linkat-tests
new file mode 100644
index 0000000000..9fb6505201
--- /dev/null
+++ b/modules/linkat-tests
@@ -0,0 +1,16 @@
+Files:
+tests/test-linkat.c
+
+Depends-on:
+areadlink-with-size
+filenamecat
+progname
+same-inode
+xgetcwd
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-linkat
+check_PROGRAMS += test-linkat
+test_linkat_LDADD = $(LDADD) @LIBINTL@