Subject: | Single test fails on < 5.10 when Class::C3::XS is not available - suggesting a hard-skip |
The following fails reliably on any 5.8.x:
PERL5OPT="-MDevel::Hide=Class::C3::XS" prove -b t/cmop/methods.t
Given Moose is dynamic_requires => 0, it is a no-go to hard-require C::C3::XS on older perls. I suggest just skipping the test in this scenario (it seems to not affect any Moose consuming code I tested on this configuration).
This was uncovered during https://github.com/dbsrgits/dbix-class/commit/179566f3, with the chain of events being:
- https://github.com/dbsrgits/dbix-class/blob/179566f3/maint/travis-ci_scripts/30_before_script.bash#L59
- Install MRO::Compat, pulling in Class::C3 with no ::XS, as it is optional
- Run tests
- https://github.com/dbsrgits/dbix-class/blob/179566f3/maint/travis-ci_scripts/50_after_success.bash#L15
- Install Moose as part of the post-test curiculum