Quiet t/op/stash.t output
authorJerry D. Hedden <jdhedden@cpan.org>
Tue, 30 Jun 2009 19:16:33 +0000 (15:16 -0400)
committerCraig A. Berry <craigberry@mac.com>
Wed, 1 Jul 2009 03:27:17 +0000 (22:27 -0500)
 Attached patch to t/op/stash.t applies Craig Berry's fix (commit
 fbad106ea7f26c14f996d4ff2eb920ccffc44821) only on VMS. This keeps the
 noise from the affected tests from polluting the 'make test' output.

t/op/stash.t

index 578f937..546bf9f 100644 (file)
@@ -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" )