From: Benjamin Otte Date: Thu, 20 Apr 2023 15:31:57 +0000 (+0200) Subject: testsuite: Be less verbose in accessor-apis test X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~389^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=be5f2250;p=gtk4.git testsuite: Be less verbose in accessor-apis test Only print the tried names when --verbose is passed to the test. --- diff --git a/testsuite/gtk/accessor-apis.c b/testsuite/gtk/accessor-apis.c index aae3c17821..63b2942d7a 100644 --- a/testsuite/gtk/accessor-apis.c +++ b/testsuite/gtk/accessor-apis.c @@ -218,9 +218,12 @@ check_function_name (GType type, } g_test_message ("No %s for property %s::%s", get ? "getter" : "setter", g_type_name (type), property_name); - for (i = 0; names[i] != NULL; i++) + if (g_test_verbose ()) { - g_test_message (" %s", names[i]); + for (i = 0; names[i] != NULL; i++) + { + g_test_message (" %s", names[i]); + } } g_test_fail ();