summaryrefslogtreecommitdiff
path: root/modules/openat-tests
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-09-16 13:21:46 -0600
committerEric Blake <ebb9@byu.net>2009-09-16 20:56:48 -0600
commitfc8289d694095c8e5def3078a2557e122dcf459b (patch)
tree52fd8b56689f5df0c0e282e676a3672e950f2ede /modules/openat-tests
parentf8bb3e7216e3a3bc1d12f20a1c076c0b5e7117d9 (diff)
downloadgnulib-fc8289d694095c8e5def3078a2557e122dcf459b.tar.gz
openat-tests: ensure unlinkat behaves like rmdir
* tests/test-rmdir.c (main): Factor guts... * tests/test-rmdir.h (test_rmdir_func): ...into new file. * modules/rmdir-tests (Files): Ship new file. * modules/openat-tests: New test. * tests/test-unlinkat.c: Likewise. Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'modules/openat-tests')
-rw-r--r--modules/openat-tests13
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/openat-tests b/modules/openat-tests
new file mode 100644
index 0000000000..a82a4f33e8
--- /dev/null
+++ b/modules/openat-tests
@@ -0,0 +1,13 @@
+Files:
+tests/test-rmdir.h
+tests/test-unlinkat.c
+
+Depends-on:
+
+configure.ac:
+AC_CHECK_FUNCS_ONCE([symlink])
+
+Makefile.am:
+TESTS += test-unlinkat
+check_PROGRAMS += test-unlinkat
+test_unlinkat_LDADD = $(LDADD) @LIBINTL@