diff --git a/t/loc_tools.pl b/t/loc_tools.pl index 3076f632de6b..b062e0dd4714 100644 --- a/t/loc_tools.pl +++ b/t/loc_tools.pl @@ -83,6 +83,9 @@ ($) } } +# Larger than any real test +my $my_count = 1_000_000; + sub _my_fail($) { my $message = shift; if (defined &main::fail) { @@ -90,7 +93,7 @@ ($) } else { local($\, $", $,) = (undef, ' ', ''); - print "not ok 0 $message\n"; + print "not ok " . $my_count++ . $message . "\n"; } } @@ -538,12 +541,12 @@ ($) my $save_locale = setlocale(&POSIX::LC_CTYPE()); if (! $save_locale) { - ok(0, "Verify could save previous locale"); + _my_fail("Verify could save previous locale"); return 0; } if (! setlocale(&POSIX::LC_CTYPE(), $locale)) { - ok(0, "Verify could setlocale to $locale"); + _my_fail("Verify could setlocale to $locale"); return 0; } @@ -556,7 +559,7 @@ ($) # go through testing all the locales on the platform. if (CORE::fc(chr utf8::unicode_to_native(0xdf)) ne "ss") { if ($locale =~ /UTF-?8/i) { - ok (0, "Verify $locale with UTF-8 in name is a UTF-8 locale"); + _my_fail("Verify $locale with UTF-8 in name is a UTF-8 locale"); } } else {