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

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

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

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

        at  490c8e7633d556b2d65725760490cf14f4cc1267 (commit)

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

    docs for -leak-check

commit f39669dac5dcf6e734df271cfdce5831b4830998
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 e4408097683ae8ad062a9e4e3001e3d0925595a5
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 987e954cf38099b2895c4584907c30f05aea3730
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.

commit 732f414fdc41ebb0eb74316190878ea17936835b
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()

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

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