Commit be8b647f authored by Gautier Pelloux-Prayer's avatar Gautier Pelloux-Prayer
Browse files

tester: count leaking test as failed too

parent 2aa71018
......@@ -147,6 +147,7 @@ int belle_sip_tester_after_each() {
// if the test is NOT marked as leaking memory and it actually is, we should make it fail
if (!leaks_expected && leaked_objects > 0) {
BC_FAIL("This test is leaking memory!");
return 1;
// and reciprocally
} else if (leaks_expected && leaked_objects == 0) {
BC_FAIL("This test is not leaking anymore, please remove LeaksMemory tag!");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment