Fix many
[gitmo/Mouse.git] / t / 050_metaclasses / 017_use_base_of_moose.t
index 2b68fd3..9076fa8 100644 (file)
@@ -2,6 +2,13 @@
 
 use strict;
 use warnings;
+use Test::More;
+
+BEGIN{
+    if($] < 5.008){
+        plan skip_all => "segv happens on 5.6.2";
+    }
+}
 
 use Test::More tests => 4;
 use Test::Exception;
@@ -9,11 +16,13 @@ use Test::Exception;
 {
     package NoOpTrait;
     use Mouse::Role;
+
+
 }
 
 {
     package Parent;
-    use Mouse -traits => 'NoOpTrait';
+    use Mouse "-traits" => 'NoOpTrait';
 
     has attr => (
         is  => 'rw',
@@ -25,12 +34,11 @@ use Test::Exception;
     package Child;
     use base 'Parent';
 }
-
 is(Child->meta->name, 'Child', "correct metaclass name");
-
 my $child = Child->new(attr => "ibute");
 ok($child, "constructor works");
 
+
 is($child->attr, "ibute", "getter inherited properly");
 
 $child->attr("ition");