Skip Menu |

This queue is for tickets about the CGI-Simple CPAN distribution.

Report information
The Basics
Id: 103039
Status: new
Priority: 0/
Queue: CGI-Simple

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

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



Subject: tests fail when run in parallel
It looks like you are reusing the same temporary directory or file, so when tests are run in parallel (e.g. via HARNESS_OPTIONS=j9), the tests stomp on each other's state. You should use unique temp files/directories, e.g. via File::Temp or Test::TempDir::Tiny, to make tests work properly in all conditions. Building CGI-Simple # Testing CGI::Simple 1.115 t/000.load.t ........ ok t/020.cookie.t ...... ok t/030.function.t .... ok t/041.multipart.t ... ok t/040.request.t ..... ok t/080.util.t ........ ok Can't read ./cgi-tmpfile.tmp No such file or directory at t/070.standard.t line 594. # Failed test 'upload('/some/path/to/myfile') - real files, 1' # at t/070.standard.t line 596. # got: '' # expected: '1' t/050.simple.t ...... ok t/100.set-cookie.t .. ok # Looks like you failed 1 test of 289. t/070.standard.t .... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/289 subtests t/090.14838.t ....... ok t/manifest.t ........ skipped: Test::DistManifest 1.012 required to test MANIFEST t/headers.t ......... ok t/110.bad-upload.t .. ok t/upload_info.t ..... ok t/pod-coverage.t .... ok t/pod.t ............. ok t/060.slow_post.t ... ok Test Summary Report ------------------- t/070.standard.t (Wstat: 256 Tests: 289 Failed: 1) Failed test: 145 Non-zero exit status: 1 Files=17, Tests=864, 10 wallclock secs ( 0.17 usr 0.06 sys + 1.46 cusr 0.19 csys = 1.88 CPU) Result: FAIL Failed 1/17 test programs. 1/864 subtests failed.