develooper Front page | perl.perl5.changes | Postings from January 2019

[perl.git] branch blead updated. v5.29.7-24-g6bf77a4bea

From:
Tony Cook
Date:
January 28, 2019 06:44
Subject:
[perl.git] branch blead updated. v5.29.7-24-g6bf77a4bea
Message ID:
E1gnyf1-0005pu-Ut@git.dc.perl.space
In perl.git, the branch blead has been updated

<https://perl5.git.perl.org/perl.git/commitdiff/6bf77a4bea241aa338f9a8d7ba6aaf25db91e34b?hp=0f9a6232f0af0895807ddd0afae2d5512aa91bf9>

- Log -----------------------------------------------------------------
commit 6bf77a4bea241aa338f9a8d7ba6aaf25db91e34b
Author: Tony Cook <tony@develop-help.com>
Date:   Mon Jan 28 14:11:50 2019 +1100

    don't leak temp files
    
    the test I added allocated more temp files, but didn't arrange for
    backup files to be cleaned up.
    
    Modified the cleanup to clean up every generated temp and backup file
    even if more are allocated in the future with mkfiles()

-----------------------------------------------------------------------

Summary of changes:
 t/io/nargv.t | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/io/nargv.t b/t/io/nargv.t
index 4482572aeb..a62c4f265e 100644
--- a/t/io/nargv.t
+++ b/t/io/nargv.t
@@ -137,4 +137,4 @@ sub mkfiles {
     return wantarray ? @results : @results[-1];
 }
 
-END { unlink_all map { ($_, "$_.bak") } mkfiles(1..5) }
+END { unlink_all map { ($_, "$_.bak") } @files }

-- 
Perl5 Master Repository



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About