diff options
author | pooryorick <com.digitalsmarties@pooryorick.com> | 2018-06-20 19:06:40 (GMT) |
---|---|---|
committer | pooryorick <com.digitalsmarties@pooryorick.com> | 2018-06-20 19:06:40 (GMT) |
commit | c911dc937fb03f387cc7ecd74b04a2e60ddb53b5 (patch) | |
tree | ce9c2c19d32f127bc86fa36c315d082e9e948f9c | |
parent | 645241afc13d0aa6272925a04c3afa93ca93ef19 (diff) | |
download | tcl-c911dc937fb03f387cc7ecd74b04a2e60ddb53b5.zip tcl-c911dc937fb03f387cc7ecd74b04a2e60ddb53b5.tar.gz tcl-c911dc937fb03f387cc7ecd74b04a2e60ddb53b5.tar.bz2 |
Add valgrind suppression for dlopen and ensure that processes are reaped in
http11.test.
-rw-r--r-- | tests/http11.test | 7 | ||||
-rw-r--r-- | tools/valgrind_suppress | 10 |
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/http11.test b/tests/http11.test index c9ded0b..2e50837 100644 --- a/tests/http11.test +++ b/tests/http11.test @@ -666,6 +666,13 @@ test http11-4.3 "normal post request, check channel query length" -setup { # ------------------------------------------------------------------------- +# Eliminate valgrind "still reachable" reports on outstanding "Detached" +# structures in the detached list which stem from PipeClose2Proc not waiting +# around for background processes to complete, meaning that previous calls to +# Tcl_ReapDetachedProcs might not have had a chance to reap all processes. +after 10 +exec [info nameofexecutable] << {} + foreach p {create_httpd httpd_read halt_httpd meta check_crc} { if {[llength [info proc $p]]} {rename $p {}} } diff --git a/tools/valgrind_suppress b/tools/valgrind_suppress index 84ed4cd..3c733c2 100644 --- a/tools/valgrind_suppress +++ b/tools/valgrind_suppress @@ -51,3 +51,13 @@ fun:TclCreateSocketAddress } +{ + TclpDlopen/load + Memcheck:Leak + match-leak-kinds: reachable + fun:calloc + ... + fun:dlopen + fun:TclpDlopen +} + |