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

[perl.git] branch tonyc/test-leak-check created.v5.29.7-28-gf338fcad65

From:
Tony Cook
Date:
January 28, 2019 06:44
Subject:
[perl.git] branch tonyc/test-leak-check created.v5.29.7-28-gf338fcad65
Message ID:
E1gnyjs-0005wW-Q4@git.dc.perl.space
In perl.git, the branch tonyc/test-leak-check has been created

<https://perl5.git.perl.org/perl.git/commitdiff/f338fcad654f73954a52a99b910f8966dd85302c?hp=0000000000000000000000000000000000000000>

        at  f338fcad654f73954a52a99b910f8966dd85302c (commit)

- Log -----------------------------------------------------------------
commit f338fcad654f73954a52a99b910f8966dd85302c
Author: Tony Cook <tony@develop-help.com>
Date:   Mon Jan 28 15:26:17 2019 +1100

    docs for -leak-check

commit 2d7a72cf9292e39edcd8557f9e173fbc52161c56
Author: Tony Cook <tony@develop-help.com>
Date:   Mon Jan 28 15:15:02 2019 +1100

    -leak-check for files now checks leaks of non-t temp files
    
    This works by setting $ENV{TMPDIR} to a temporary directory, so
    there should be no interference from other processes.
    
    If some test avoids File::Temp and ignores TMPDIR, eg. using /tmp
    directly, this test may not pick up leaked files.

commit 40f56bf18631b1d1ac2f1987e428ab47f8cf6482
Author: Tony Cook <tony@develop-help.com>
Date:   Mon Jan 28 14:12:42 2019 +1100

    detect temp files created but not cleaned up within t/

commit cb6a72d2a6cfe04c530a28b47f114ae785d0b3bb
Author: Tony Cook <tony@develop-help.com>
Date:   Mon Jan 28 10:49:56 2019 +1100

    check for ipc leaks with -leak-check to harness
    
    Captures the list of IPC objects before and after running and test and
    reports any extra objects created.
    
    If you have other processes allocating IPC objects such as web
    servers, database servers, etc, this may erroneously report those as
    leaked, so some care is required in interpreting the results.
    
    ipcs results are currently only parsed on Linux and darwin.
    
    Another leak to test for is temp files being left behind.

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

-- 
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