This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8161897
)
locale.t: croak isn't loaded
author
Karl Williamson
<public@khwilliamson.com>
Mon, 16 Jan 2012 19:51:13 +0000
(12:51 -0700)
committer
Karl Williamson
<public@khwilliamson.com>
Sat, 21 Jan 2012 17:02:53 +0000
(10:02 -0700)
so use die instead
lib/locale.t
patch
|
blob
|
blame
|
history
diff --git
a/lib/locale.t
b/lib/locale.t
index
445e885
..
0c428f9
100644
(file)
--- a/
lib/locale.t
+++ b/
lib/locale.t
@@
-986,7
+986,7
@@
setlocale(LC_ALL, "C");
? lc($char)
: ($function eq "lcfirst")
? lcfirst($char)
- :
croak
("Unexpected function \"$function\"");
+ :
die
("Unexpected function \"$function\"");
ok($changed eq $should_be, "$function(\"$char\") in C locale should be \"$should_be\", got \"$changed\"");
# Tainting shouldn't happen for empty strings, or those characters