In chroots created for e.g. Debian package /dev/ptmx might not be
accessible. Skip the test in this case.
---
gnulib/tests/test-posix_openpt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gnulib/tests/test-posix_openpt.c b/gnulib/tests/test-posix_openpt.c
index 87243b2..045640f 100644
--- a/gnulib/tests/test-posix_openpt.c
+++ b/gnulib/tests/test-posix_openpt.c
@@ -43,7 +43,7 @@ main (void)
/* Open the master of a pseudo-terminal pair. */
master = posix_openpt (O_RDWR | O_NOCTTY);
- if (master < 0 && errno == ENOSYS)
+ if (master < 0 && (errno == ENOSYS || errno == EACCES))
{
fputs ("skipping: platform lacks pty support\n", stderr);
return 77;