Subject: | Error in test suite on AIX |
Hi,
Test suite of the Expect module fails on AIX.
The 01-test.t fails with error:
$ perl 01-test.t
#
# Checking if EOF on pty slave is correctly reported to master...
# (this fails on about 50% of the supported systems, so don't panic!
# Expect will work anyway!)
#
# Subtest: eof_on_pty
1..1
not ok 1 - Sorry, you may not notice if the spawned process closes the pty. (timeout)
# Failed test 'Sorry, you may not notice if the spawned process closes the pty. (timeout)'
# at 01-test.t.test line 434.
# 'eof'
# doesn't match '(?^:^timeout$)'
# Looks like you failed 1 test of 1.
not ok 13 - eof_on_pty
To correct, you must use the same workaround on AIX than BSDs:
$ diff 01-test.t.not-ok 01-test.t.ok
423c423
< if ($Config{osname} =~ /^(freebsd|midnightbsd|dragonfly)$/) {
---
Show quoted text
> if ($Config{osname} =~ /^(freebsd|midnightbsd|dragonfly|aix)$/) {
Thanks,
Etienne Guesnet.