From: Vincent Pit Date: Sun, 15 Nov 2015 18:34:01 +0000 (-0200) Subject: Silence some useless warnings from File::Temp X-Git-Tag: v1.18~8 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FTest-Valgrind.git;a=commitdiff_plain;h=4a52e05da21e9ca5e27ab7c79898fda44b74ec2c Silence some useless warnings from File::Temp They only appear when the tests are run with -w, which happens with old versions of Test::Harness. --- diff --git a/t/lib/Test/Valgrind/FakeValgrind.pm b/t/lib/Test/Valgrind/FakeValgrind.pm index 71077bd..3f61ba6 100644 --- a/t/lib/Test/Valgrind/FakeValgrind.pm +++ b/t/lib/Test/Valgrind/FakeValgrind.pm @@ -49,6 +49,7 @@ sub new { } else { # Can't use the OO interface if we don't wan't the file to be opened by # default, but then we have to deal with cleanup ourselves. + local $^W = 0; (undef, my $tmp_file) = File::Temp::tempfile( TEMPLATE => 'fakevgXXXX', TMPDIR => 1,