From f7f741dab4f7790900a9a59d89c1b492cbef7e05 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Sun, 13 Nov 2016 16:13:25 -0500 Subject: [PATCH] src/tests/inpty.cc: Skip the test on forkpty failures Signed-off-by: Anders Kaseorg --- src/tests/inpty.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/tests/inpty.cc b/src/tests/inpty.cc index cacfadd..09cb619 100644 --- a/src/tests/inpty.cc +++ b/src/tests/inpty.cc @@ -70,7 +70,12 @@ int main( int argc, char *argv[] ) pid_t child = forkpty( &master, NULL, NULL, &winsize ); if ( child == -1 ) { perror( "forkpty" ); - return 1; + /* The Debian and Ubuntu build systems fail to set up a working + * /dev/ptmx (https://bugs.debian.org/817236). There is not much + * we can do about that except skip the test. In the future when + * this is fixed, we should turn this into an failure. + */ + return 77; } else if ( child == 0 ) { if ( execvp( argv[1], argv + 1 ) < 0 ) { perror( "execve" );