From: Simon McVittie Date: Thu, 9 Jun 2011 11:39:38 +0000 (+0100) Subject: dbus-test: only test for memleaks if we actually ran the test X-Git-Tag: dbus-1.5.10~64 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=79cc73627ad042feb9dab3adce7641d673983216;p=thirdparty%2Fdbus.git 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 --- diff --git a/dbus/dbus-test.c b/dbus/dbus-test.c index b2eeb724e..e6687c4d5 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 */