Jarkko Hietaniemi wrote:
bash-2.05$ perl Makefile.PLCould you download BSD-Resource 1.18 (just uploaded) and retry? If tests still fail, could you run the failing subtests by hand and show the results?
Configuring BSD::Resource...
Checking whether you have certain header files...
You do have <sys/resource.h>. Excellent.
Checking to see whether you have rlim_t...
You seem to have rlim_t defined (which is nice).
....
bash-2.05$ make test
PERL_DL_NONLAZY=1 /usr/local/perl-5.8.0/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/getpriority....ok
t/getrlimit......ok
t/getrusage......ok
t/setpriority....ok
t/setrlimit......FAILED test 4
Failed 1/11 tests, 90.91% okay
t/times..........ok
Failed Test Stat Wstat Total Fail Failed List of Failed
------------------------------------------------------------------------------- t/setrlimit.t 11 1 9.09% 4
Failed 1/6 test scripts, 83.33% okay. 1/33 subtests failed, 96.97% okay.
*** Error code 2
Stop.
bash-2.05$ make test TEST_VERBOSE=1
<snip>
1..11
ok 1
ok 2
ok 3
not ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
FAILED test 4
Failed 1/11 tests, 90.91% okay
t/times..........1..2
# CORE::times() = 0.04 0.46 0 0
# times = 0.040277 0.463194 0 0
# BSD::Resource::times() = 0.040294 0.463385 0 0
# far: a = 0.040277, b = 0.04, r = 0.1
# far: abs(a/b-1) = 0.00692500000000007
# far: a = 0.463194, b = 0.46, r = 0.5
# far: abs(a/b-1) = 0.0069434782608695
ok 1
# far: a = 0.040277, b = 0.040294, r = 0.1
# far: abs(a/b-1) = 0.00042189904204093
# far: a = 0.463194, b = 0.463385, r = 0.1
# far: abs(a/b-1) = 0.000412184252835068
# far: a = 0, b = 0, r = 0.1
# far: abs(a/b-1) = -
# far: a = 0, b = 0, r = 0.1
# far: abs(a/b-1) = -
ok 2
ok
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/setrlimit.t 11 1 9.09% 4
Failed 1/6 test scripts, 83.33% okay. 1/33 subtests failed, 96.97% okay.
*** Error code 2
Stop.
bash-2.05$ pwd
/usr/local/home/alian/perl/BSD-Resource-1.18
bash-2.05$ uname
NetBSD
bash-2.05$ uname -r
1.5.2
Pass on FreeBSD & OpenBSD. Fail on NetBSD.
