summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorSteve Hay <steve.m.hay@googlemail.com>2019-04-19 19:27:05 +0100
committerSteve Hay <steve.m.hay@googlemail.com>2019-04-19 20:06:44 +0100
commit113a38a2051d3a3460d5972bfb05284a2daa89ae (patch)
treebaec2694c7ead742e470ae98ce02ae5f654647d0 /t
parentac9c4ce8f838f402cb706d7fd04db9c2c3c083b2 (diff)
downloadperl-113a38a2051d3a3460d5972bfb05284a2daa89ae.tar.gz
t/op/sprintf2.t - Mark failing tests as TODO with VC++ prior to VC14
See perl #133982.
Diffstat (limited to 't')
-rw-r--r--t/op/sprintf2.t8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/op/sprintf2.t b/t/op/sprintf2.t
index 3f4c126c68..dc87821152 100644
--- a/t/op/sprintf2.t
+++ b/t/op/sprintf2.t
@@ -818,6 +818,14 @@ SKIP: {
local $::TODO = "denorm literals treated as zero"
if $f == 0.0 && $t->[2] ne '0x0p+0';
+ # Versions of Visual C++ earlier than 2015 (VC14, cl.exe version 19.x)
+ # fail three tests here - see perl #133982.
+ local $::TODO = "Visual C++ has problems prior to VC14"
+ if $^O eq 'MSWin32' and $Config{cc} eq 'cl' and
+ $Config{ccversion} =~ /^(\d+)/ and $1 < 19 and
+ (($t->[0] eq '3e-322' and ($t->[1] eq '%a' or $t->[1] eq '%.4a')) or
+ $t->[0] eq '7e-322');
+
my $s = sprintf($t->[1], $f);
is($s, $t->[2], "subnormal @$t got $s");
}