[PATCH t/op/taint.t] remove possible false positive
[p5sagit/p5-mst-13.2.git] / lib / Net / t / netrc.t
index 885b515..464794b 100644 (file)
@@ -58,7 +58,8 @@ SKIP: {
        $stat[2] = 077;
        ok( !defined(Net::Netrc::_readrc()),
                '_readrc() should not read world-writable file' );
-       ok( $warn =~ /^Bad permissions:/, '... and should warn about it' );
+       ok( scalar( $warn =~ /^Bad permissions:/ ),
+           '... and should warn about it' );
 
        # the owner field should still not match
        $stat[2] = 0;
@@ -66,7 +67,8 @@ SKIP: {
         if ($<) { 
           ok( !defined(Net::Netrc::_readrc()), 
               '_readrc() should not read file owned by someone else' ); 
-          ok( $warn =~ /^Not owner:/, '... and should warn about it' ); 
+          ok( scalar( $warn =~ /^Not owner:/ ),
+             '... and should warn about it' );
         } else { 
           ok(1, "Skip - testing as root") for 1..2; 
         }