Revision history for Class::Accessor::Grouped.
+ - Pass tests if Class::XSAccessor is available but Sub::Name isn't
+
0.10007 2012-11-08 11:54 (UTC)
- Disable tests on perls where Class::XSAccessor emits broken
error messages (RT#74883, RT#80519)
} ? 0 : "$@" );
my $found_cxsa;
- constant->import( NO_CXSA => ( !NO_SUBNAME() and eval {
+ constant->import( NO_CXSA => ( NO_SUBNAME() || ( eval {
Module::Runtime::require_module('Class::XSAccessor');
$found_cxsa = Class::XSAccessor->VERSION;
Class::XSAccessor->VERSION($__minimum_xsa_version);
- } ) ? 0 : "$@" );
+ } ? 0 : "$@" ) ) );
if (NO_CXSA() and $found_cxsa and !$ENV{CAG_OLD_XS_NOWARN}) {
warn(
use lib 't/lib';
BEGIN {
+ plan skip_all => "Sub::Name not available"
+ unless eval { require Sub::Name };
+
require Class::Accessor::Grouped;
+
my $xsa_ver = $Class::Accessor::Grouped::__minimum_xsa_version;
eval {
require Class::XSAccessor;
use lib 't/lib';
BEGIN {
+ plan skip_all => "Sub::Name not available"
+ unless eval { require Sub::Name };
+
require Class::Accessor::Grouped;
+
my $xsa_ver = $Class::Accessor::Grouped::__minimum_xsa_version;
eval {
require Class::XSAccessor;