Subject: | errors in test of Term::ProgressBar 2.04 |
My config: perl 5.8.0, ithreads, shared libperl,
Platform: Solaris 7/Sparc
The test gives errors coming out of File::Path::rmtree
(running make test TEST_VERBOSE=1, with TEST_DEBUG set to 1):
t/eta-linear.....1..10
# Running under perl version 5.008 for solaris
# Current time local: Thu Aug 21 08:42:50 2003
# Current time GMT: Thu Aug 21 06:42:50 2003
# Using Test.pm version 1.24
ok 1
ok 2
ok 3
ok 4
ok 5
$VAR1 = [
'fred: 0% [ ]',
'fred: 10% [== ]0m00s Left',
'fred: 20% [===== ]0m04s Left',
'fred: 30% [======== ]0m04s Left',
'fred: 40% [========== ]0m04s Left',
'fred: 50% [============= ]0m04s Left',
' ',
'Hello Mum!',
'fred: 50% [============= ]0m05s Left',
'fred: 60% [================ ]0m03s Left',
'fred: 70% [================== ]0m02s Left',
'fred: 80% [===================== ]0m01s Left',
'fred: 90% [======================== ]0m00s Left',
'fred: 100% [===========================]-- DONE --'
];
ok 6
ok 7
ok 8
ok 9
ok 10
Can't remove directory /var/tmp/aaaoca4hX: Invalid argument at /home/hwadm/.cpan/build/Term-ProgressBar-2.04/t/test.pm line 563
ok
Similar things happen in the other tests. By inserting a
"warn $_" before the rmtree command on line 563 in t/test.pm
I noticed that the rmtree is called already around test nr. 8.
I suspect that there is somewhere a fork, and in the child the
END block in t/test.pm is executed before the end of the test.
Sorry, but I did not have time to look at this more closely.
Let me know if you need any further info.
Cheers,
Marek