Skip to content
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

parallel.t hangs on Windows #36

Open
chorny opened this issue Jun 8, 2014 · 2 comments
Open

parallel.t hangs on Windows #36

chorny opened this issue Jun 8, 2014 · 2 comments
Labels

Comments

@chorny
Copy link

chorny commented Jun 8, 2014

Test-Class-Moose-0.55
tested on 5.20.0, 5.16.0, 5.10.1

Can't dup STDOUT:  Bad file descriptor at C:/Strawberry200rc1/perl/lib/Test/Builder.pm line 1948.
    Test::Builder::_open_testhandles(Test::Builder=HASH(0x34ecbdc)) called at C:/Strawberry200rc1/perl/lib/Test/Builder.pm line 1927
    Test::Builder::_dup_stdhandles(Test::Builder=HASH(0x34ecbdc)) called at C:/Strawberry200rc1/perl/lib/Test/Builder.pm line 467
    Test::Builder::reset(Test::Builder=HASH(0x34ecbdc)) called at C:/Strawberry200rc1/perl/lib/Test/Builder.pm line 145
    Test::Builder::create("Test::Builder") called at C:/Strawberry200rc1/perl/lib/Test/Builder.pm line 197
    Test::Builder::child(Test::Builder=HASH(0x2fd816c), "test_second") called at C:/Strawberry200rc1/perl/lib/Test/Builder.pm line 251
    Test::Builder::subtest(Test::Builder=HASH(0x2fd816c), "test_second", CODE(0x1d9b3e4)) called at lib/Test/Class/Moose/Role/Executor.pm line 304
    Test::Class::Moose::Role::Executor::_tcm_run_test_method(Test::Class::Moose::Executor::Parallel=HASH(0x31658c4), TestsFor::Alpha::Subclass=HASH(0x3306aa4), "test_second", Test::Class::Moose::Report::Instance=HASH(0x34ec144)) called at C:/Strawberry200rc1/perl/vendor/lib/Class/MOP/Method/Wrapped.pm line 54
    Class::MOP::Method::Wrapped::__ANON__(Test::Class::Moose::Executor::Parallel=HASH(0x31658c4), TestsFor::Alpha::Subclass=HASH(0x3306aa4), "test_second", Test::Class::Moose::Report::Instance=HASH(0x34ec144)) called at C:/Strawberry200rc1/perl/vendor/lib/Class/MOP/Method/Wrapped.pm line 92
    Test::Class::Moose::Executor::Parallel::_tcm_run_test_method(Test::Class::Moose::Executor::Parallel=HASH(0x31658c4), TestsFor::Alpha::Subclass=HASH(0x3306aa4), "test_second", Test::Class::Moose::Report::Instance=HASH(0x34ec144)) called at lib/Test/Class/Moose/Role/Executor.pm line 130
    Test::Class::Moose::Role::Executor::_tcm_run_test_instance(Test::Class::Moose::Executor::Parallel=HASH(0x31658c4), "TestsFor::Alpha::Subclass", TestsFor::Alpha::Subclass=HASH(0x3306aa4)) called at lib/Test/Class/Moose/Executor/Parallel.pm line 47
    Test::Class::Moose::Executor::Parallel::__ANON__(Test::Class::Moose::Executor::Parallel=HASH(0x31658c4), "TestsFor::Alpha::Subclass", TestsFor::Alpha::Subclass=HASH(0x3306aa4)) called at lib/Test/Class/Moose/Executor/Parallel.pm line 129
    Test::Class::Moose::Executor::Parallel::_run_parallel_jobs(Test::Class::Moose::Executor::Parallel=HASH(0x31658c4), Parallel::ForkManager=HASH(0x2271134), ARRAY(0x330690c)) called at lib/Test/Class/Moose/Executor/Parallel.pm line 68
    Test::Class::Moose::Executor::Parallel::runtests() called at C:/Strawberry200rc1/perl/vendor/lib/Moose/Meta/Method/Delegation.pm line 113
    Test::Class::Moose::Runner::runtests() called at t/parallel.t line 18
No TAP received from child process -1304! at lib/Test/Class/Moose/Executor/Parallel.pm line 105.
    Test::Class::Moose::Executor::Parallel::__ANON__(-1304, 9, undef, 0, 0, undef) called at C:/Strawberry200rc1/perl/site/lib/Parallel/ForkManager.pm line 586
    Parallel::ForkManager::on_finish(Parallel::ForkManager=HASH(0x99f054), -1304, 9, undef, 0, 0, undef) called at C:/Strawberry200rc1/perl/site/lib/Parallel/ForkManager.pm line 559
    Parallel::ForkManager::wait_one_child(Parallel::ForkManager=HASH(0x99f054), undef) called at C:/Strawberry200rc1/perl/site/lib/Parallel/ForkManager.pm line 570
    Parallel::ForkManager::wait_all_children(Parallel::ForkManager=HASH(0x99f054)) called at lib/Test/Class/Moose/Executor/Parallel.pm line 140
    Test::Class::Moose::Executor::Parallel::_run_parallel_jobs(Test::Class::Moose::Executor::Parallel=HASH(0x1a51cf4), Parallel::ForkManager=HASH(0x99f054), ARRAY(0x1a9d6a4)) called at lib/Test/Class/Moose/Executor/Parallel.pm line 68
    Test::Class::Moose::Executor::Parallel::runtests(Test::Class::Moose::Executor::Parallel=HASH(0x1a51cf4)) called at C:/Strawberry200rc1/perl/vendor/lib/Moose/Meta/Method/Delegation.pm line 113
    Test::Class::Moose::Runner::runtests(Test::Class::Moose::Runner=HASH(0x3f83ac)) called at lib/Test/Class/Moose/Executor/Parallel.pm line 105.
    Test::Class::Moose::Executor::Parallel::__ANON__(-1304, 9, undef, 0, 0, undef) called at C:/Strawberry200rc1/perl/site/lib/Parallel/ForkManager.pm line 586
    Parallel::ForkManager::on_finish(Parallel::ForkManager=HASH(0x99f054), -1304, 9, undef, 0, 0, undef) called at C:/Strawberry200rc1/perl/site/lib/Parallel/ForkManager.pm line 559
    Parallel::ForkManager::wait_one_child(Parallel::ForkManager=HASH(0x99f054), undef) called at C:/Strawberry200rc1/perl/site/lib/Parallel/ForkManager.pm line 570
    Parallel::ForkManager::wait_all_children(Parallel::ForkManager=HASH(0x99f054)) called at lib/Test/Class/Moose/Executor/Parallel.pm line 140
    Test::Class::Moose::Executor::Parallel::_run_parallel_jobs(Test::Class::Moose::Executor::Parallel=HASH(0x1a51cf4), Parallel::ForkManager=HASH(0x99f054), ARRAY(0x1a9d6a4)) called at lib/Test/Class/Moose/Executor/Parallel.pm line 68
    Test::Class::Moose::Executor::Parallel::runtests(Test::Class::Moose::Executor::Parallel=HASH(0x1a51cf4)) called at C:/Strawberry200rc1/perl/vendor/lib/Moose/Meta/Method/Delegation.pm line 113
    Test::Class::Moose::Runner::runtests(Test::Class::Moose::Runner=HASH(0x3f83ac)) called at t/parallel.t line 18
Terminating on signal SIGINT(2)
 at C:/Strawberry200rc1/perl/site/lib/Parallel/ForkManager.pm line 649.
    Parallel::ForkManager::_NT_waitpid(Parallel::ForkManager=HASH(0x99f054), -1, 0) called at C:/Strawberry200rc1/perl/site/lib/Parallel/ForkManager.pm line 539
    Parallel::ForkManager::wait_one_child(Parallel::ForkManager=HASH(0x99f054), undef) called at C:/Strawberry200rc1/perl/site/lib/Parallel/ForkManager.pm line 570
    Parallel::ForkManager::wait_all_children(Parallel::ForkManager=HASH(0x99f054)) called at lib/Test/Class/Moose/Executor/Parallel.pm line 140
    Test::Class::Moose::Executor::Parallel::_run_parallel_jobs(Test::Class::Moose::Executor::Parallel=HASH(0x1a51cf4), Parallel::ForkManager=HASH(0x99f054), ARRAY(0x1a9d6a4)) called at lib/Test/Class/Moose/Executor/Parallel.pm line 68
    Test::Class::Moose::Executor::Parallel::runtests(Test::Class::Moose::Executor::Parallel=HASH(0x1a51cf4)) called at C:/Strawberry200rc1/perl/vendor/lib/Moose/Meta/Method/Delegation.pm line 113
    Test::Class::Moose::Runner::runtests(Test::Class::Moose::Runner=HASH(0x3f83ac)) called at t/parallel.t line 18
@autarch
Copy link
Member

autarch commented Jun 8, 2014

I'm a bit inclined to blame this on Parallel::ForkManager, so it might be worth reporting the bug there. That said, we can at least skip this test on Windows.

autarch added a commit that referenced this issue Sep 2, 2014
        * This is the first release to include the deprecations and backwards
          incompatibilities from 0.55. Please see that release's notes as
          well!
        * Skip parallel tests on Windows. This may be a bug in
          Test::Class::Moose or Parallel::ForkManager, but for now we're
          punting. Reported by Alexandr Ciornii. GitHub issue #36.
        * Removed Sub::Attribute from the "recommends" list. This is required
          now, and listing it as both required and recommends is confusing.
        * Lots of doc fixes.
@autarch
Copy link
Member

autarch commented Jul 6, 2015

As of v0.56 this test should be skipped on Windows, at least.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants