Skip to content

Commit 2c2da4e

Browse files
committed
t/run/todo.t: Skip -DDEBUGGING tests unless Configured
1 parent 6573cd3 commit 2c2da4e

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");
@@ -60,13 +64,15 @@ TODO: {
6064
}
6165

6266
TODO: {
67+
todo_skip "Test needs -DDEBUGGING", 1 unless $is_debugging_build;
6368
local $::TODO = 'GH 16876';
6469
fresh_perl('$_ = "a"; s{ x | (?{ s{}{x} }) }{}gx;',
6570
{ stderr => 'devnull' });
6671
is($?, 0, "No assertion failure");
6772
}
6873

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

0 commit comments

Comments
 (0)