From e88e9dea2e2079bd4a7d51809d196fc8bee8cb1c Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 9 Jun 2011 12:39:38 +0100 Subject: [PATCH 1/4] dbus-test: only test for memleaks if we actually ran the test This reduces output spam if you're only running one part. --- 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 deb4c93..c335690 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 */ -- 1.7.5.4