Skip to content

Commit 111814a

Browse files
committed
t/run/todo.t: Skip -DDEBUGGING tests unless Configured
1 parent a978d02 commit 111814a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

t/run/todo.t

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ BEGIN {
66
require './charset_tools.pl';
77
require './loc_tools.pl';
88
}
9+
910
use Config;
1011

1112
use strict;
@@ -27,6 +28,9 @@ use warnings;
2728

2829
my $switches = "";
2930

31+
my $is_debugging_build = $Config{cppflags} =~ /-DDEBUGGING/;
32+
33+
3034
{ # Fixed by acababb42be12ff2986b73c1bfa963b70bb5d54e
3135
"abab" =~ /(?:[^b]*(?=(b)|(a))ab)*/;
3236
is($1, undef, "GH #16894");
@@ -75,13 +79,15 @@ TODO: {
7579
}
7680

7781
TODO: {
82+
todo_skip "Test needs -DDEBUGGING", 1 unless $is_debugging_build;
7883
local $::TODO = 'GH 16876';
7984
fresh_perl('$_ = "a"; s{ x | (?{ s{}{x} }) }{}gx;',
8085
{ stderr => 'devnull' });
8186
is($?, 0, "No assertion failure");
8287
}
8388

8489
TODO: {
90+
todo_skip "Test needs -DDEBUGGING", 1 unless $is_debugging_build;
8591
local $::TODO = 'GH 16952';
8692
fresh_perl('s/d|(?{})!//.$&>0for$0,l..a0,0..0',
8793
{ stderr => 'devnull' });

0 commit comments

Comments
 (0)