[MacPorts] #46435: p5-io-tty: tests fail; posix_openpt(): Operation not permitted

MacPorts noreply at macports.org
Tue Jan 6 04:02:24 PST 2015


#46435: p5-io-tty: tests fail; posix_openpt(): Operation not permitted
-------------------------------------------------+-------------------------
  Reporter:  mojca@…                             |      Owner:  macports-
      Type:  defect                              |  tickets@…
  Priority:  Normal                              |     Status:  new
 Component:  ports                               |  Milestone:
Resolution:                                      |    Version:
      Port:  p5-io-tty p5-io-pty-easy p5-expect  |   Keywords:
-------------------------------------------------+-------------------------
Changes (by mojca@…):

 * port:  p5-io-tty p5-io-pty-easy => p5-io-tty p5-io-pty-easy p5-expect


Comment:

 Replying to [ticket:46435 mojca@…]:
 > {{{
 > --->  Testing p5.20-io-tty
 > Running Mkbootstrap for IO::Tty ()
 > chmod 644 "Tty.bs"
 > PERL_DL_NONLAZY=1 "/opt/local/bin/perl5.20" "-MExtUtils::Command::MM"
 "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0,
 'blib/lib', 'blib/arch')" t/*.t
 > # Configuration: -DHAVE_DEV_PTMX -DHAVE_GRANTPT -DHAVE_OPENPTY
 -DHAVE_POSIX_OPENPT -DHAVE_PTSNAME -DHAVE_SIGACTION -DHAVE_STRLCPY
 -DHAVE_TERMIOS_H -DHAVE_TTYNAME -DHAVE_UNLOCKPT -DHAVE_UTIL_H
 > # Checking for appropriate ioctls:
 > # TIOCNOTTY
 > # TIOCSCTTY
 > trying posix_openpt()...
 > pty_allocate(nonfatal): posix_openpt(): Operation not permitted at
 /path/to/p5.20-io-tty/work/IO-Tty-1.12/blib/lib/IO/Pty.pm line 24.
 > trying openpty()...
 > pty_allocate(nonfatal): openpty(): Operation not permitted at
 /path/to/p5.20-io-tty/work/IO-Tty-1.12/blib/lib/IO/Pty.pm line 24.
 > trying /dev/ptmx...
 > pty_allocate(nonfatal): open(/dev/ptmx): Operation not permitted at
 /path/to/p5.20-io-tty/work/IO-Tty-1.12/blib/lib/IO/Pty.pm line 24.
 > trying BSD /dev/pty??...
 > Cannot open a pty at t/test.t line 32.
 >
 > #   Failed test '0 exit code from forked child - Checking that returned
 fd's don't clash with stdin/out/err'
 > #   at t/test.t line 46.
 > #          got: '512'
 > #     expected: '0'
 > #  === Checking if child gets pty as controlling terminal
 > trying posix_openpt()...
 > pty_allocate(nonfatal): posix_openpt(): Operation not permitted at
 /path/to/p5.20-io-tty/work/IO-Tty-1.12/blib/lib/IO/Pty.pm line 24.
 > trying openpty()...
 > pty_allocate(nonfatal): openpty(): Operation not permitted at
 /path/to/p5.20-io-tty/work/IO-Tty-1.12/blib/lib/IO/Pty.pm line 24.
 > trying /dev/ptmx...
 > pty_allocate(nonfatal): open(/dev/ptmx): Operation not permitted at
 /path/to/p5.20-io-tty/work/IO-Tty-1.12/blib/lib/IO/Pty.pm line 24.
 > trying BSD /dev/pty??...
 > Cannot open a pty at t/test.t line 52.
 > # Looks like you planned 5 tests but ran 2.
 > # Looks like you failed 1 test of 2 run.
 > # Looks like your test exited with 2 just after 2.
 > t/test.t ..
 > Dubious, test returned 2 (wstat 512, 0x200)
 > Failed 4/5 subtests
 >
 > Test Summary Report
 > -------------------
 > t/test.t (Wstat: 512 Tests: 2 Failed: 1)
 >   Failed test:  2
 >   Non-zero exit status: 2
 >   Parse errors: Bad plan.  You planned 5 tests but ran 2.
 > Files=1, Tests=2,  1 wallclock secs ( 0.03 usr  0.01 sys +  0.08 cusr
 0.14 csys =  0.26 CPU)
 > Result: FAIL
 > Failed 1/1 test programs. 1/2 subtests failed.
 > make: *** [test_dynamic] Error 2
 > Command failed:  cd "/path/to/p5.20-io-tty/work/IO-Tty-1.12" &&
 /usr/bin/make test
 > Exit code: 2
 > Error: org.macports.test for port p5.20-io-tty returned: command
 execution failed
 > Warning: targets not executed for p5.20-io-tty: org.macports.test
 > Please see the log file for port p5.20-io-tty for details:
 >     /path/to/p5.20-io-tty/main.log
 > To report a bug, follow the instructions in the guide:
 >     http://guide.macports.org/#project.tickets
 > }}}
 >
 > As a consequence tests in `p5-expect` and `p5-io-pty-easy` fail as well.

-- 
Ticket URL: <https://trac.macports.org/ticket/46435#comment:3>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list