summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/perl/cpan/Test-Simple/t/Test2/behavior/disable_ipc_d.t
blob: b9698f28cd3346a5208bafa90f46b1dbc6704e04 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use strict;
use warnings;

use Test2::Util qw/CAN_THREAD/;
use Test2::API qw/context/;

BEGIN {
    sub plan {
        my $ctx = context();
        $ctx->plan(@_);
        $ctx->release;
    }

    unless (CAN_THREAD()) {
        plan(0, skip_all => 'System does not have threads');
        exit 0;
    }
}

use threads;
no Test2::IPC;
use Test::More;

ok(Test2::API::test2_ipc_disabled, "disabled IPC");
ok(!Test2::API::test2_ipc, "No IPC");

done_testing;