diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2011-06-09 12:39:38 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-02-08 19:09:52 +0000 |
commit | 79cc73627ad042feb9dab3adce7641d673983216 (patch) | |
tree | fa24991877394d576e56e40ff6315a48e9ca33e8 | |
parent | 2a8be5a2f5d9c848e10c8c505f02eebd48276c3a (diff) |
dbus-test: only test for memleaks if we actually ran the test
This reduces output spam if you're only running one part.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38285
Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>
-rw-r--r-- | dbus/dbus-test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dbus/dbus-test.c b/dbus/dbus-test.c index b2eeb724..e6687c4d 100644 --- a/dbus/dbus-test.c +++ b/dbus/dbus-test.c @@ -63,9 +63,9 @@ run_test (const char *test_name, printf ("%s: running %s tests\n", "dbus-test", test_name); if (!test ()) die (test_name); - } - check_memleaks (); + check_memleaks (); + } } static void @@ -79,9 +79,9 @@ run_data_test (const char *test_name, printf ("%s: running %s tests\n", "dbus-test", test_name); if (!test (test_data_dir)) die (test_name); - } - check_memleaks (); + check_memleaks (); + } } #endif /* DBUS_BUILD_TESTS */ |