Skip a test that fails on some platforms
[gitmo/Mouse.git] / t / 900_mouse_bugs / 006_RT69939.t
CommitLineData
84787870 1#!perl -w
2
2b36fd6f 3use Test::More;
4
5BEGIN {
6 if($^O =~ /bsd/) {
7 plan skip_all => q{TODO: *bsd might fail on this tests (this test is an workaround to a core bug)};
8 }
9}
10
84787870 11package Foo;
12use Mouse;
13
14has bar => (
15 is => 'rw',
16
17 trigger => sub {
18 eval 'BEGIN{ die }';
19 },
20 default => sub {
21 eval 'BEGIN{ die }';
22 return 42;
23 },
24);
25
26sub BUILDARGS {
27 eval 'BEGIN{ die }';
28 return {};
29}
30
31sub BUILD {
32 eval 'BEGIN{ die }';
33}
34
35package main;
36
37use Test::More tests => 3;
38
39$@ = '(ERRSV)';
40
41my $foo = Foo->new;
42isa_ok $foo, 'Foo';
43is $foo->bar, 42;
44$foo->bar(100);
45is $foo->bar, 100;
46note("\$@=$@");