Skip to content

Create a test that automatically runs valgrind #23

@EddyTheCo

Description

@EddyTheCo

It is very easy when using Glib to produce memory leaks (forgetting to unref some object).
It will be nice to create a CMake target test that runs Valgrind automatically on all the tests and fails if definitely lost or indirectly lost result values are different from 0.
Something like G_SLICE=always-malloc ; G_DEBUG=gc-friendly ; valgrind --leak-check=full --show-leak-kinds=all ./gconnman_clock_test
Currently, these values on all the tests return 0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions