X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Faccessors_ro.t;h=33d3f38a3dfd96a6b6e69ce5c528ff058bcd0198;hb=76427bb1ddcfc2374ae9eb615855adf19069a55b;hp=f9427b1392a2cdc10a9bd442089b74f49f7a42b9;hpb=79f0ccb008e9baa7ba958a883ce9a690ead01795;p=p5sagit%2FClass-Accessor-Grouped.git diff --git a/t/accessors_ro.t b/t/accessors_ro.t index f9427b1..33d3f38 100644 --- a/t/accessors_ro.t +++ b/t/accessors_ro.t @@ -1,8 +1,8 @@ -use Test::More tests => 58; +use Test::More; use Test::Exception; use strict; use warnings; -use Config; +no warnings 'once'; use lib 't/lib'; # we test the pure-perl versions only, but allow overrides @@ -83,15 +83,12 @@ for my $name (sort keys %$test_accessors) { : qr/$name(:?_accessor)?\Q' cannot alter its value (read-only attribute of class AccessorGroupsRO)/ ; - { - local $TODO = "Class::XSAccessor emits broken error messages on 5.10 or -DDEBUGGING 5.8" - if ( - $test_accessors->{$name}{is_xs} - and - $] < '5.011' - and - ( $] > '5.009' or $Config{config_args} =~ /DEBUGGING/ ) - ); + SKIP: { + skip "Class::XSAccessor emits broken error messages on 5.10 and earlier", 1 if ( + $test_accessors->{$name}{is_xs} + and + $] < '5.011' + ); # die on set via name/alias throws_ok { @@ -108,5 +105,4 @@ for my $name (sort keys %$test_accessors) { is($obj->$alias, 'a'); }; -#important -1; +done_testing unless $::SUBTESTING;