tests: Fix warning in memory leak assert

This commit is contained in:
Kristian Høgsberg 2012-04-13 10:13:21 -04:00
parent ac06144cc9
commit d8b66a00f4

View file

@ -69,7 +69,7 @@ run_test(const struct test *t)
int cur_alloc = num_alloc; int cur_alloc = num_alloc;
t->run(); t->run();
assert(("memory leak detected in test.", cur_alloc == num_alloc)); assert(cur_alloc == num_alloc && "memory leak detected in test.");
exit(EXIT_SUCCESS); exit(EXIT_SUCCESS);
} }