From: Rafael Garcia-Suarez Date: Tue, 19 Mar 2002 10:49:27 +0000 (+0100) Subject: Re: ext/B/t/xref.t @15300 on VMS X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=aa7facf25fead5c168e13db22cc7b083d0ae3fb0;p=p5sagit%2Fp5-mst-13.2.git Re: ext/B/t/xref.t @15300 on VMS Message-ID: <20020319104927.C705@rafael> p4raw-id: //depot/perl@15323 --- diff --git a/ext/B/t/xref.t b/ext/B/t/xref.t index 8b14355..b1d0bc0 100644 --- a/ext/B/t/xref.t +++ b/ext/B/t/xref.t @@ -1,4 +1,4 @@ -#!./perl -w +#!./perl BEGIN { chdir 't' if -d 't'; @@ -6,6 +6,8 @@ BEGIN { } use strict; +use warnings; +no warnings 'once'; use Test::More tests => 14; # line 50 @@ -13,12 +15,14 @@ use_ok( 'B::Xref' ); my $file = 'xreftest.out'; +open SAVEOUT, ">&STDOUT" or diag $!; +close STDOUT; # line 100 our $compilesub = B::Xref::compile("-o$file"); ok( ref $compilesub eq 'CODE', "compile() returns a coderef ($compilesub)" ); $compilesub->(); # Compile this test script - -#END { unlink $file or diag "END block failed: $!" } +close STDOUT; +open STDOUT, ">&SAVEOUT" or diag $!; # Now parse the output # line 200 @@ -94,7 +98,6 @@ is( ); END { - close XREF; 1 while unlink $file; }