Skip to content

Commit 87ef111

Browse files
committed
Fix undef warnings in usedl detection
1 parent 60bd37c commit 87ef111

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

t/03-xsstatic.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use Test::More;
1313

1414
plan skip_all => "Disabled as broken perl installs give false negative"
1515
# if not static perl, and not author
16-
if $Config{usedl} eq 'define' and !$ENV{AUTHOR_TESTING};
16+
unless !$Config{usedl} and $ENV{AUTHOR_TESTING};
1717
plan skip_all => "ExtUtils::CBuilder not installed or couldn't find a compiler"
1818
unless have_compiler();
1919
plan skip_all => 'Shared perl library' if $Config{useshrplib} eq 'true';

t/lib/MakeMaker/Test/Setup/XS.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ sub setup_xs {
244244

245245
sub list_static {
246246
(
247-
($Config{usedl} ne 'define' ? [ 'basic', '', '' ] : ()), # still needs testing on static perl
247+
( !$Config{usedl} ? [ 'basic', '', '' ] : ()), # still needs testing on static perl
248248
[ 'static', '', '' ],
249249
[ 'basic', ' static', '_static' ],
250250
[ 'multi', ' static', '_static' ],

0 commit comments

Comments
 (0)