summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2011-11-07 16:01:36 -0700
committerEric Blake <eblake@redhat.com>2011-11-09 16:12:43 -0700
commit12597d104c0c1d6368eed9a9f1ebacd03f99542e (patch)
treefb283d5365296545abb2ac8471dbb4c1633ace5a /modules
parent9709cb4bcac113208a51b709d143f51313e8e26f (diff)
downloadgnulib-12597d104c0c1d6368eed9a9f1ebacd03f99542e.tar.gz
ptsname_r-tests: new test module
For now, this tests glibc behavior of both returning an errno value as well as setting errno; we may need to relax that. * modules/ptsname_r-tests: New module. * tests/test-ptsname_r.c: New file. Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'modules')
-rw-r--r--modules/ptsname_r-tests14
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/ptsname_r-tests b/modules/ptsname_r-tests
new file mode 100644
index 0000000000..50b3f81065
--- /dev/null
+++ b/modules/ptsname_r-tests
@@ -0,0 +1,14 @@
+Files:
+tests/test-ptsname_r.c
+tests/signature.h
+tests/macros.h
+
+Depends-on:
+same-inode
+
+configure.ac:
+AC_CHECK_DECLS_ONCE([alarm])
+
+Makefile.am:
+TESTS += test-ptsname_r
+check_PROGRAMS += test-ptsname_r