This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Turn 9**9**9 skips into todos, and add os390 (z/OS).
authorJarkko Hietaniemi <jhi@iki.fi>
Sun, 26 Oct 2014 13:32:42 +0000 (09:32 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Mon, 8 Dec 2014 23:37:03 +0000 (18:37 -0500)
Not that OS/libmath fixes are likely, but one can always hope.

t/op/infnan.t

index 23d5377..86135a0 100644 (file)
@@ -221,11 +221,11 @@ is(rand($NInf), $NInf, "rand(-Inf) is -Inf");
 # ~NaN    == NaN???
 # Or just declare insanity and die?
 
-SKIP: {
+TODO: {
+    local $::TODO;
     my $here = "$^O $Config{osvers}";
-    if ($here =~ /^hpux 10/) {
-        skip "$here: pow doesn't generate Inf", 1;
-    }
+    $::TODO = "$here: pow (9**9**9) doesn't give Inf"
+        if $here =~ /^(?:hpux 10|os390)/;
     is(9**9**9, $PInf, "9**9**9 is Inf");
 }
 
@@ -341,11 +341,11 @@ SKIP: {
 is(sin($NaN), $NaN, "sin(NaN) is NaN");
 is(rand($NaN), $NaN, "rand(NaN) is NaN");
 
-SKIP: {
+TODO: {
+    local $::TODO;
     my $here = "$^O $Config{osvers}";
-    if ($here =~ /^hpux 10/) {
-        skip "$here: pow doesn't generate Inf, so sin(Inf) won't happen", 1;
-    }
+    $::TODO = "$here: pow (9**9**9) doesn't give Inf"
+        if $here =~ /^(?:hpux 10|os390)/;
     is(sin(9**9**9), $NaN, "sin(9**9**9) is NaN");
 }