Moose now warns when you try to load it from the main package. Added a
[gitmo/Moose.git] / t / 600_todo_tests / 005_moose_and_threads.t
CommitLineData
68b6146c 1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
6use Test::More no_plan => 1;
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
18to leave it commented out. Basically it seems that there
19is some bad interaction between the ??{} construct that
20is used in the "parser" for type definitions and threading
21so probably the fix would involve removing the ??{} usage
22for something else.
23
24use threads;
25
26{
27 package Foo;
28 use Moose;
29 has "bar" => (is => 'rw', isa => "Str | Num");
30}
31
32my $thr = threads->create(sub {});
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