Subject: | sleep/SIGCHLD test failure on Solaris with perl 5.8.4 |
This is the default sol10 /usr/bin/perl:
perl -v
This is perl, v5.8.4 built for i86pc-solaris-64int
(with 31 registered patches, see perl -V for more detail)
SunOS f<host> 5.10 Generic_137112-05 i86pc i386 i86pc
$ make test TEST_FILES=t/forks08.t TEST_VERBOSE=1
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(1, 'blib/lib', 'blib/arch')" t/forks08.t
t/forks08....1..11
#
# These tests validate overloaded sleep behavior.
#
ok 1 - check that main thread sleeps full 5 seconds after CHLD signal
ok 2 - check that main thread did not sleep too long after CHLD signal
ok 3 - check that main thread sleeps full 5 seconds after CHLD signal
ok 4 - check that main thread did not sleep too long after CHLD signal
not ok 5 - check that main thread sleeps full 5 seconds after CHLD signal
# Failed test 'check that main thread sleeps full 5 seconds after CHLD signal'
# at t/forks08.t line 80.
# '1'
# >=
# '5'
ok 6 - check that main thread did not sleep too long after CHLD signal
ok 7 # skip Time::HiRes::nanosleep function not supported on this platform
ok 8 # skip Time::HiRes::nanosleep function not supported on this platform
ok 9 - check that main thread sleeps full 5 seconds after custom CHLD signal
ok 10 - check that main thread did not sleep too long after CHLD signal
ok 11 - check that custom CHLD signal was called
# Looks like you failed 1 test of 11.
dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 5
Failed 1/11 tests, 90.91% okay (less 2 skipped tests: 8 okay, 72.73%)
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/forks08.t 1 256 11 1 9.09% 5
2 subtests skipped.
Failed 1/1 test scripts, 0.00% okay. 1/11 subtests failed, 90.91% okay.
All other tests run fine.
I'm not sure if this is a real problem, or just the test checks for usleep/nanosleep availability or usefulness not checking the right thing??