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