-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skip tests requiring fork() when no fork() is available #30
base: master
Are you sure you want to change the base?
Conversation
If you build perl on Windows without -DPERL_IMPLICIT_SYS (which I do, in order to enable -DPEL_MALLOC, which seems faster than using the system malloc()) then you don't get the fork() emulation and several of Test-TCP's tests fail. This commit skips those tests in the same manner as various other CPAN modules do in this case. This allows a normal "cpan install ..." of Test-TCP or anything depending on it (e.g. Plack) to succeed without having to "force" anything.
But, test case that depends on Test::TCP still fail... |
Yes, Test::TCP would need some work to be usable by perls without a fork(). On 29 November 2014 at 13:50, Tokuhiro Matsuno [email protected]
|
Again, any reason why this is not merged? |
Why do you want to install Test::TCP even when it cannot be used (or is there any need to have As tokuhirom stated, each test needs to have the
Considering the fact, I believe it would be more straight-forward to keep Test::TCP as-is, and modify the tests like:
|
Do we need a mergeable version of this PR? |
Such as it is now, it can't be merged, so I guess that at least a mergeable version would be a step towards having something usable. |
If you build perl on Windows without -DPERL_IMPLICIT_SYS (which I do, in
order to enable -DPEL_MALLOC, which seems faster than using the system
malloc()) then you don't get the fork() emulation and several of
Test-TCP's tests fail.
This commit skips those tests in the same manner as various other CPAN
modules do in this case. This allows a normal "cpan install ..." of
Test-TCP or anything depending on it (e.g. Plack) to succeed without
having to "force" anything.