Skip Menu |
 
rt.cpan.org will be shut down on March 1st, 2021.

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Test-TCP CPAN distribution.

Report information
The Basics
Id: 60657
Status: resolved
Priority: 0/
Queue: Test-TCP

People
Owner: Nobody in particular
Requestors: dgl [...] dgl.cx
Cc:
AdminCc:

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



Subject: Impossible to use plan skip_all if cleanup is required
Download (untitled) / with headers
text/plain 413b
Test::TCP wraps the call to the client in an eval block, however it does not trap exit. This means if after connecting I do something like: plan skip_all => "Server version too old for tests"; The cleanup is not run (because Test::Builder::skip_all calls exit). Ideally Test::TCP should trap exit and perform cleanup(s) (or a cleanup queue run from END, or any similar solution would be fine). Thanks, David
Download (untitled) / with headers
text/plain 598b
dgl, Thanks for your report. I'm added better cleanup code and shipped dev release 1.02_01. Please check it out. On 2010-8꜈-23 ꜈ 16:52:14, DGL wrote: Show quoted text
> Test::TCP wraps the call to the client in an eval block, however it
does Show quoted text
> not trap exit. This means if after connecting I do something like: > > plan skip_all => "Server version too old for tests"; > > The cleanup is not run (because Test::Builder::skip_all calls exit). > Ideally Test::TCP should trap exit and perform cleanup(s) (or a
cleanup Show quoted text
> queue run from END, or any similar solution would be fine). > > Thanks, > David


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.