summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-12-02 19:28:52 -0700
committerKarl Williamson <public@khwilliamson.com>2013-12-04 19:52:38 -0700
commitc7e7f6b71d5756d757aa0d1f510a44ef82bcea77 (patch)
tree78cf0c05f49f7ea0050bf7afce584989e3deebdd /lib
parent9fc477bf4a1f21e94d5dfe8e99d8a93308d5388c (diff)
downloadperl-c7e7f6b71d5756d757aa0d1f510a44ef82bcea77.tar.gz
lib/locale.t: Only output debug message if relevant
This message telling people to set an environment variable was output even if the variable was already set; this is potentially confusing
Diffstat (limited to 'lib')
-rw-r--r--lib/locale.t10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/locale.t b/lib/locale.t
index f211aef8a6..b15d297b20 100644
--- a/lib/locale.t
+++ b/lib/locale.t
@@ -2250,11 +2250,19 @@ if ($didwarn) {
my $F = join(" ", @F);
$F =~ s/(.{50,60}) /$1\n#\t/g;
+ my $details = "";
+ unless ($debug) {
+ $details = "# For more details, rerun, with environment variable PERL_DEBUG_FULL_TEST=1.\n";
+ }
+ elsif ($debug == 1) {
+ $details = "# For even more details, rerun, with environment variable PERL_DEBUG_FULL_TEST=2.\n";
+ }
+
warn
"# The following locales\n#\n",
"#\t", $F, "\n#\n",
"# had problems.\n#\n",
- "# For more details, rerun, with environment variable PERL_DEBUG_FULL_TEST=1.\n";
+ $details;
} else {
warn "# None of your locales were broken.\n";
}