Add a valgrind suppression file
This commit is contained in:
+1
-1
@@ -205,7 +205,7 @@ add_custom_target(check COMMAND "test_suite"
|
|||||||
DEPENDS test_suite biboumi)
|
DEPENDS test_suite biboumi)
|
||||||
add_custom_target(e2e COMMAND "python3" "${CMAKE_CURRENT_SOURCE_DIR}/tests/end_to_end/"
|
add_custom_target(e2e COMMAND "python3" "${CMAKE_CURRENT_SOURCE_DIR}/tests/end_to_end/"
|
||||||
DEPENDS biboumi)
|
DEPENDS biboumi)
|
||||||
add_custom_target(e2e_valgrind COMMAND "E2E_BIBOUMI_VALGRIND=1" "python3" "${CMAKE_CURRENT_SOURCE_DIR}/tests/end_to_end/"
|
add_custom_target(e2e_valgrind COMMAND "E2E_BIBOUMI_SUPP_DIR=${CMAKE_CURRENT_SOURCE_DIR}/tests/end_to_end/" "E2E_BIBOUMI_VALGRIND=1" "python3" "${CMAKE_CURRENT_SOURCE_DIR}/tests/end_to_end/"
|
||||||
DEPENDS biboumi)
|
DEPENDS biboumi)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ class BiboumiRunner(ProcessRunner):
|
|||||||
self.name = name
|
self.name = name
|
||||||
self.fd = open("biboumi_%s_output.txt" % (name,), "w")
|
self.fd = open("biboumi_%s_output.txt" % (name,), "w")
|
||||||
if with_valgrind:
|
if with_valgrind:
|
||||||
self.create = asyncio.create_subprocess_exec("valgrind", "--leak-check=full", "--show-leak-kinds=all",
|
self.create = asyncio.create_subprocess_exec("valgrind", "--suppressions=" + (os.environ.get("E2E_BIBOUMI_SUPP_DIR") or "") + "biboumi.supp", "--leak-check=full", "--show-leak-kinds=all",
|
||||||
"--errors-for-leak-kinds=all", "--error-exitcode=16",
|
"--errors-for-leak-kinds=all", "--error-exitcode=16",
|
||||||
"./biboumi", "test.conf", stdin=None, stdout=self.fd,
|
"./biboumi", "test.conf", stdin=None, stdout=self.fd,
|
||||||
stderr=self.fd, loop=None, limit=None)
|
stderr=self.fd, loop=None, limit=None)
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
stdlibc++ thingy
|
||||||
|
Memcheck:Leak
|
||||||
|
match-leak-kinds: reachable
|
||||||
|
fun:malloc
|
||||||
|
...
|
||||||
|
fun:call_init.part.0
|
||||||
|
fun:_dl_init
|
||||||
|
...
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user