From d8b66a00f414da3c441258d0ff1972e6120157aa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Fri, 13 Apr 2012 10:13:21 -0400 Subject: [PATCH] tests: Fix warning in memory leak assert --- tests/test-runner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.7.4