This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Suppress leaked warnings in ExtUtils tests
authorDominic Dunlop <domo@computer.org>
Thu, 10 Nov 2005 18:10:00 +0000 (19:10 +0100)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Thu, 10 Nov 2005 16:59:15 +0000 (16:59 +0000)
Message-Id: <D2949A21-7EE3-449F-BEF2-38FAD7B4A483@computer.org>

p4raw-id: //depot/perl@26079

lib/ExtUtils/t/Command.t
lib/ExtUtils/t/Manifest.t

index 92b61bf..22eabe5 100644 (file)
@@ -58,7 +58,7 @@ BEGIN {
     ok( test_f(), 'testing non-existent file' );
 
     @ARGV = ( $Testfile );
-    cmp_ok( ! test_f(), '==', (-f $Testfile), 'testing non-existent file' );
+    cmp_ok( ! test_f(), '==', defined (-f $Testfile), 'testing non-existent file' );
 
     # these are destructive, have to keep setting @ARGV
     @ARGV = ( $Testfile );
index 396789e..bba6843 100644 (file)
@@ -100,7 +100,7 @@ is( $res, 'bar', 'bar reported as new' );
 ($res, $warn) = do { local $ExtUtils::Manifest::Quiet = 1; 
                      catch_warning( \&skipcheck ) 
                 };
-cmp_ok( $warn, 'eq', '', 'disabled warnings' );
+ok( ! defined $warn, 'disabled warnings' );
 
 # add a skip file with a rule to skip itself (and the nonexistent glob '*baz*')
 add_file( 'MANIFEST.SKIP', "baz\n.SKIP" );