summaryrefslogtreecommitdiff
path: root/modules/ptsname-tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-09-19 01:02:09 +0200
committerBruno Haible <bruno@clisp.org>2011-09-19 01:02:09 +0200
commitceabceacb175fe3e37d05ba7cbe74aa502115adb (patch)
tree4d25234e2f4172fc17e9cb809594a48b9f996a8d /modules/ptsname-tests
parent6c4582fe7d5fe1751d4e545c62ef7504869e7609 (diff)
downloadgnulib-ceabceacb175fe3e37d05ba7cbe74aa502115adb.tar.gz
ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
* tests/test-ptsname.c (main): Terminate the test if it takes longer than 5 seconds. * modules/ptsname-tests (configure.ac): Test for alarm.
Diffstat (limited to 'modules/ptsname-tests')
-rw-r--r--modules/ptsname-tests1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/ptsname-tests b/modules/ptsname-tests
index 344b8a7038..e26bc9e5c2 100644
--- a/modules/ptsname-tests
+++ b/modules/ptsname-tests
@@ -7,6 +7,7 @@ Depends-on:
same-inode
configure.ac:
+AC_CHECK_DECLS_ONCE([alarm])
Makefile.am:
TESTS += test-ptsname