Skip Menu |
 

This queue is for tickets about the Net-SFTP-Foreign CPAN distribution.

Report information
The Basics
Id: 101936
Status: resolved
Priority: 0/
Queue: Net-SFTP-Foreign

People
Owner: Nobody in particular
Requestors: ether [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: tests do not run in parallel
Download (untitled) / with headers
text/plain 2.6k
It looks like the tests are re-using the same files across multiple tests, so when they are run in parallel (e.g. when HARNESS_OPTIONS=j9, or "prove -b -r -j9 t", they stomp on each other and cause failures. You should instead use unique temp files/directories for each test, e.g. via File::Temp or Test::TempDir::Tiny. sample test output: PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t # sftp-server found at /usr/bin/../lib/sftp-server # sftp-server found at /usr/bin/../lib/sftp-server t/5_join.t ................... ok # sftp-server found at /usr/bin/../lib/sftp-server t/Net-SFTP-Foreign-Compat.t .. ok t/4_perl5_11.t ............... ok # Failed test 'readdir array 1 - /home/vagrant/.cpanm/work/1423072806.20589/Net-SFTP-Foreign-1.77/t' # at t/1_run.t line 317. # got: '1_run.t 3_convert.t 4_perl5_11.t 5_join.t Net-SFTP-Foreign-Compat.t common.pm copied.txd data.r data.txd data.txu' # expected: '1_run.t 3_convert.t 4_perl5_11.t 5_join.t Net-SFTP-Foreign-Compat.t common.pm copied.txd copied.txu data.r data.txd data.txu' # Failed test 'ls' # at t/1_run.t line 321. # got: '1_run.t 3_convert.t 4_perl5_11.t 5_join.t Net-SFTP-Foreign-Compat.t common.pm copied.txd data.r data.txd data.txu' # expected: '1_run.t 3_convert.t 4_perl5_11.t 5_join.t Net-SFTP-Foreign-Compat.t common.pm copied.txd copied.txu data.r data.txd data.txu' # Failed test 'find 1' # at t/1_run.t line 336. # got: '1_run.t|3_convert.t|4_perl5_11.t|5_join.t|Net-SFTP-Foreign-Compat.t|common.pm|copied.txd|data.r|data.txd|data.txu|t' # expected: '1_run.t|3_convert.t|4_perl5_11.t|5_join.t|Net-SFTP-Foreign-Compat.t|common.pm|copied.txd|copied.txu|data.r|data.txd|data.txu|t' # Failed test 'find 2' # at t/1_run.t line 347. # got: 't|1_run.t|3_convert.t|4_perl5_11.t|5_join.t|Net-SFTP-Foreign-Compat.t|common.pm|copied.txd|data.r|data.txd|data.txu' # expected: 't|1_run.t|3_convert.t|4_perl5_11.t|5_join.t|Net-SFTP-Foreign-Compat.t|common.pm|copied.txd|copied.txu|data.r|data.txd|data.txu' # Failed test 'glob' # at t/1_run.t line 350. # got: '10' # expected: '9' # Looks like you failed 5 tests of 811. t/1_run.t .................... Dubious, test returned 5 (wstat 1280, 0x500) Failed 5/811 subtests t/3_convert.t ................ ok Test Summary Report ------------------- t/1_run.t (Wstat: 1280 Tests: 811 Failed: 5) Failed tests: 401, 403, 405-407 Non-zero exit status: 5 Files=5, Tests=1056, 1 wallclock secs ( 0.15 usr 0.02 sys + 0.99 cusr 1.27 csys = 2.43 CPU) Result: FAIL
Fixed in 1.78_04. Thank you for reporting it!


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.