This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #126632] improve diagnostics for the comctl32 test
authorTony Cook <tony@develop-help.com>
Mon, 25 Jan 2016 10:18:16 +0000 (21:18 +1100)
committerTony Cook <tony@develop-help.com>
Mon, 25 Jan 2016 10:18:16 +0000 (21:18 +1100)
ext/XS-APItest/t/win32.t

index a84a778..fdd794a 100644 (file)
@@ -39,7 +39,9 @@ SKIP:
     if ($major >= 5 && $minor >= 1) { #atleast XP, 2K only has V5
     #this is testing the current state of things, specifically manifest stuff
     #this test can be changed if perls relationship to comctl32.dll changes
     if ($major >= 5 && $minor >= 1) { #atleast XP, 2K only has V5
     #this is testing the current state of things, specifically manifest stuff
     #this test can be changed if perls relationship to comctl32.dll changes
-        ok((Comctl32Version())[0] >= 6,'comctl32.dll is atleast version 6')
+        my @ccver = Comctl32Version();
+        cmp_ok($ccver[0], '>=', 6, "comctl32.dll is atleast version 6")
+          or diag "comctl32 version is (@ccver)";
     }
 }
 
     }
 }