Skip to content

Commit 326f023

Browse files
committed
todo.t: better check for DEBUGGING
cppflags isn't universal and may or may not be the mechanism via which the C macro DEBUGGING gets defined. So use $Config{config_args}, which seems to have worked in several similar cases in the past.
1 parent ba3d80b commit 326f023

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/run/todo.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ use warnings;
103103

104104
my $switches = "";
105105

106-
my $is_debugging_build = $Config{cppflags} =~ /-DDEBUGGING/;
106+
my $is_debugging_build = $Config{config_args} =~ /\bDDEBUGGING\b/;
107107

108108
our $TODO;
109109

0 commit comments

Comments
 (0)