summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/POSIX/t/posix.t9
1 files changed, 3 insertions, 6 deletions
diff --git a/ext/POSIX/t/posix.t b/ext/POSIX/t/posix.t
index f200a895bd..117fa5e138 100644
--- a/ext/POSIX/t/posix.t
+++ b/ext/POSIX/t/posix.t
@@ -373,10 +373,9 @@ SKIP: {
currency_symbol mon_decimal_point mon_thousands_sep
mon_grouping positive_sign negative_sign)) {
SKIP: {
- skip("localeconv has no result for $_", 1)
- unless exists $conv->{$_};
- unlike(delete $conv->{$_}, qr/\A\z/,
- "localeconv returned a non-empty string for $_");
+ my $value = delete $conv->{$_};
+ skip("localeconv '$_' may be empty", 1) if $_ ne 'decimal_point';
+ isnt($value, "", "localeconv returned a non-empty string for $_");
}
}
@@ -399,8 +398,6 @@ SKIP: {
foreach (@lconv) {
SKIP: {
- skip("localeconv has no result for $_", 1)
- unless exists $conv->{$_};
like(delete $conv->{$_}, qr/\A-?\d+\z/,
"localeconv returned an integer for $_");
}