develooper Front page | perl.perl5.porters | Postings from July 2010

Re: [perl #76740] Isolate ext/IO/t/io_dir.t test to pass parallel tests

Thread Previous
From:
Nicholas Clark
Date:
July 27, 2010 11:29
Subject:
Re: [perl #76740] Isolate ext/IO/t/io_dir.t test to pass parallel tests
Message ID:
20100727182915.GZ48531@plum.flirble.org
On Tue, Jul 27, 2010 at 01:42:41AM -0700, Petr Pisar wrote:

> -----------------------------------------------------------------
> [Please describe your issue here]
> 
> As perl5101delta documents, ext/IO/t/io_dir.t breaks parallel testing.
> 
> Problem is the test operates on common directory that is touched by other
> tests. Because io_dir compares directory content with previous state,
> concurently running tests break assumption about non-volatility of the
> directory.
> 
> This patch fixes the problem by moving io_dir tests into private directory.
> Similar code is bundled with perl-5.12.

Thanks for the patch.

However, I believe that this is no longer a problem in 5.12, even though the
test's code is unchanged, because those tests are now run with dist/IO/t as
the current directory, only IO's tests run in that directory, and IO's tests
are run sequentially.

Hence I believe that the interaction with other tests is gone now. Certainly,
I've not had problems since the grand rearrangement of the code.

Nicholas Clark

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About