diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2012-04-13 10:13:21 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-04-13 10:13:21 -0400 |
commit | d8b66a00f414da3c441258d0ff1972e6120157aa (patch) | |
tree | 6476926ad9543170c4815b049932cb3604bd99fa /tests/test-runner.c | |
parent | ac06144cc94c893b0a8ae53ed7e241f3bd7631e4 (diff) |
tests: Fix warning in memory leak assert
Diffstat (limited to 'tests/test-runner.c')
-rw-r--r-- | tests/test-runner.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-runner.c b/tests/test-runner.c index 321d5c0..188f4cc 100644 --- a/tests/test-runner.c +++ b/tests/test-runner.c @@ -69,7 +69,7 @@ run_test(const struct test *t) int cur_alloc = num_alloc; 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); } |