Skip to content

Commit

Permalink
Changed t/threads.t to skip when ithreads are not implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
fpl committed Nov 21, 2023
1 parent d130384 commit 52559f5
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions t/threads.t
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
use v5.18;
use threads;
use threads::shared;
use warnings;
use strict;
use Config;
use Test::More;

BEGIN { use_ok('Geo::GDAL::FFI', qw/:all/); }
BEGIN {
use_ok('Geo::GDAL::FFI', qw/:all/);
}

SKIP: {

skip "skip multi-thread test", 4 unless $Config{useithreads};

use Thread::Queue;
use_ok('threads');
use_ok('threads::shared');
use_ok('Thread::Queue');

my $q = Thread::Queue->new();
my @in_thrds = ();
Expand Down Expand Up @@ -58,4 +65,7 @@ for my $w (@out_thrds) {

ok(1, "threading seems ok");

}


done_testing();

0 comments on commit 52559f5

Please sign in to comment.