Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/Test2/API/Instance.pm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ our @CARP_NOT = qw/Test2::API Test2::API::Instance Test2::IPC::Driver Test2::For
use Carp qw/confess carp/;
use Scalar::Util qw/reftype/;

use Test2::Util qw/get_tid USE_THREADS CAN_FORK pkg_to_file try CAN_SIGSYS/;
use Test2::Util qw/get_tid USE_THREADS CAN_FORK pkg_to_file try/;

use Test2::EventFacet::Trace();
use Test2::API::Stack();
Expand Down
11 changes: 5 additions & 6 deletions lib/Test2/Util.pm
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,12 @@ sub _check_for_sig_sys {
return $sig_list =~ m/\bSYS\b/;
}

BEGIN {
if (_check_for_sig_sys($Config{sig_name})) {
*CAN_SIGSYS = sub() { 1 };
}
else {
*CAN_SIGSYS = sub() { 0 };
my $CAN_SIGSYS;
sub CAN_SIGSYS () {
if (!defined $CAN_SIGSYS) {
$CAN_SIGSYS = _check_for_sig_sys($Config{sig_name});
}
$CAN_SIGSYS;
}

my %PERLIO_SKIP = (
Expand Down
Loading