X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F40-threads.t;fp=t%2F40-threads.t;h=6fb1d36a6a743893ce766e2eef839b6ed4b54b21;hb=2078b6422b776ca13c21374d85aa15f3f274cc65;hp=6aade888c9082bb4bfc92868e16fef8fcdf5a697;hpb=a7d4b31f4786fe41cd52432d97ce50186fee7d2e;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/t/40-threads.t b/t/40-threads.t index 6aade88..6fb1d36 100644 --- a/t/40-threads.t +++ b/t/40-threads.t @@ -33,7 +33,7 @@ if (VMG_THREADSAFE) { my $destroyed : shared = 0; sub try { - my ($sig, $dispell, $op_info) = @_; + my ($dispell, $sig, $op_info) = @_; my $tid = threads->tid(); my $c = 0; my $wiz = eval { @@ -83,7 +83,7 @@ sub try { for my $dispell (1, 0) { for my $sig (undef, Variable::Magic::gensig()) { $destroyed = 0; - my @t = map { threads->create(\&try, $sig, $dispell, $_) } + my @t = map { threads->create(\&try, $dispell, $sig, $_) } (VMG_OP_INFO_NAME) x 2, (VMG_OP_INFO_OBJECT) x 2; $_->join for @t; is($destroyed, (1 - $dispell) * 4, 'destructors');