Skip Menu |

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
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
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