Require Dist::Zilla 4.200016+
[gitmo/Moose.git] / t / todo_tests / moose_and_threads.t
CommitLineData
68b6146c 1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
a28e50e4 6use Test::More;
68b6146c 7
7ff56534 8
68b6146c 9=pod
10
11See this for some details:
12
13http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=476579
14
15Here is the basic test case, it segfaults, so I am going
d03bd989 16to leave it commented out. Basically it seems that there
17is some bad interaction between the ??{} construct that
68b6146c 18is used in the "parser" for type definitions and threading
19so probably the fix would involve removing the ??{} usage
20for something else.
21
d03bd989 22use threads;
68b6146c 23
24{
d03bd989 25 package Foo;
26 use Moose;
27 has "bar" => (is => 'rw', isa => "Str | Num");
68b6146c 28}
29
d03bd989 30my $thr = threads->create(sub {});
68b6146c 31$thr->join();
32
33=cut
34
35{
36 local $TODO = 'This is just a stub for the test, see the POD';
37 fail('Moose type constraints and threads dont get along');
38}
39
a28e50e4 40done_testing;