1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00

test: add valgrind memory checks

Copy over the "make memcheck" target from libshl. It runs the test-suite
again via valgrind and fails on any valgrind warnings. This is very useful
to find memory-leaks and invalid memory-accesses via the test-suite.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
This commit is contained in:
David Herrmann 2014-03-28 12:48:10 +01:00
parent 729acb64ca
commit 9cb0a092c2
4 changed files with 92 additions and 2 deletions

15
test.supp Normal file
View file

@ -0,0 +1,15 @@
#
# Some suppression rules for our test-suite to work correctly.
# libcheck has some weird errors, so lets ignore them.
#
{
libcheck timer_create warnings
Memcheck:Param
timer_create(evp)
fun:timer_create
obj:/usr/lib/libcheck.so.0.0.0
obj:/usr/lib/libcheck.so.0.0.0
fun:srunner_run
fun:main
}