[perl #68108] : also fix if/else constant folding
[p5sagit/p5-mst-13.2.git] / t / op / stash.t
index 578f937..57c8659 100644 (file)
@@ -65,7 +65,7 @@ ok( !eval q{ defined %schoenmaker:: }, 'works in eval("")' );
 }
 
 SKIP: {
-    eval { require B; 1 } or skip "no B", 12;
+    eval { require B; 1 } or skip "no B", 18;
 
     *b = \&B::svref_2object;
     my $CVf_ANON = B::CVf_ANON();
@@ -109,9 +109,8 @@ SKIP: {
     TODO: {
         local $TODO = "anon CVs not accounted for yet";
 
-        my @results = split "\n", runperl
+        my @results = split "\n", runperl(
             switches    => [ "-MB", "-l" ],
-            stderr      => 1,
             prog        => q{
                 my $sub = do {
                     package four;
@@ -138,7 +137,9 @@ SKIP: {
                 print $st eq q/__ANON__/ ? q/ok/ : q/not ok/;
 
                 print q/done/;
-            };
+            },
+            ($^O eq 'VMS') ? (stderr => 1) : ()
+        );
 
         ok( @results == 5 && $results[4] eq "done",
             "anon CVs in undefed stash don't segfault" )