summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-07-21 15:16:33 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-07-22 21:31:42 -0400
commit68419f9c61ef7c22b1225655e7e3b38058c70a71 (patch)
tree4fa2379f6be5d00301f9c7cd8eadf84504854de5
parent338aa8b061f430c2b3d9deaeed0aec523639aff7 (diff)
downloadperl-68419f9c61ef7c22b1225655e7e3b38058c70a71.tar.gz
Add strtoul and strtol to avoidables.
-rw-r--r--t/porting/libperl.t7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/porting/libperl.t b/t/porting/libperl.t
index cf6dbca3d1..9562556f1c 100644
--- a/t/porting/libperl.t
+++ b/t/porting/libperl.t
@@ -484,6 +484,8 @@ for my $symbol (sort keys %expected) {
#
# atoi has unsafe and undefined failure modes, and is affected by locale.
#
+# strtol and strtoul are affected by locale.
+#
my %unexpected;
@@ -493,8 +495,13 @@ for my $stdio (qw(gets fgets tmpfile sprintf vsprintf)) {
for my $str (qw(strcat strcpy strncat strncpy)) {
$unexpected{$str} = undef; # No Configure symbol for these.
}
+
$unexpected{atoi} = undef; # No Configure symbol for atoi.
+for my $str (qw(strtol strtoul)) {
+ $unexpected{$str} = "d_$str";
+}
+
for my $symbol (sort keys %unexpected) {
if (defined $unexpected{$symbol} && !$Config{$unexpected{$symbol}}) {
SKIP: {