Skip to content

Commit fc1fe24

Browse files
committed
XXX temp: lib/locale.t: debug
1 parent 6cf55ba commit fc1fe24

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/locale.t

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ use I18N::Langinfo 'langinfo', @langinfo;
131131

132132
# =1 adds debugging output; =2 increases the verbosity somewhat
133133
our $debug = $ENV{PERL_DEBUG_FULL_TEST} // 0;
134+
if ($^O =~ /cygwin | darwin /xi) {
135+
$debug = 1 ;
136+
$^D = 0x04000000|0x00100000;# if $^O eq 'cygwin';
137+
}
134138

135139
# Certain tests have been shown to be problematical for a few locales. Don't
136140
# fail them unless at least this percentage of the tested locales fail.
@@ -204,14 +208,17 @@ sub ok {
204208
print "ok " . ++$test_num;
205209
print " $message";
206210
print "\n";
211+
debug __FILE__ . ": ", __LINE__ . ": ok=$result $test_num $message" if $debug;
207212
return ($result) ? 1 : 0;
208213
}
209214

210215
sub skip {
216+
debug __FILE__ . ": ", __LINE__ . ": skip $_[0]" if $debug;
211217
return ok 1, "skipped: " . shift;
212218
}
213219

214220
sub fail {
221+
debug __FILE__ . ": ", __LINE__ . ": fail $_[0]" if $debug;
215222
return ok 0, shift;
216223
}
217224

0 commit comments

Comments
 (0)