summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorCalle Dybedahl <calle@init.se>2015-03-19 12:36:34 +0100
committerCalle Dybedahl <calle@init.se>2015-03-19 12:36:34 +0100
commit81773791c7d7b057516b167c23206e4a39ba025c (patch)
treef3eebfd64ae98b95542322e0d3a49898ca115473 /t
parent619228cf4e666394b655b37ed7948538265cb1c4 (diff)
RRs survive threading.
Diffstat (limited to 't')
-rw-r--r--t/threads.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/threads.t b/t/threads.t
index 046ea01..e445c98 100644
--- a/t/threads.t
+++ b/t/threads.t
@@ -4,9 +4,12 @@ use_ok('Net::LDNS');
my $can_use_threads = eval 'use threads; 1';
if ($can_use_threads) {
+
my $resolver = Net::LDNS->new('8.8.8.8');
+ my $rr = Net::LDNS::RR->new('www.iis.se. 60 IN A 91.226.36.46');
threads->create( sub {} );
$_->join for threads->list;
+
} else {
plan skip_all => 'No threads in this perl.';
}