diff options
author | Benjamin Otte <otte@redhat.com> | 2023-04-20 17:31:57 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2023-04-20 17:47:54 +0200 |
commit | be5f225022eefe3824d3f272eb009feca7baf209 (patch) | |
tree | 3257885df83fd664fc13004dbc772138da29cb3b | |
parent | 40ac37245d21a2cd9d3f2784fa9745836d888987 (diff) | |
download | gtk+-be5f225022eefe3824d3f272eb009feca7baf209.tar.gz |
testsuite: Be less verbose in accessor-apis test
Only print the tried names when --verbose is passed to the test.
-rw-r--r-- | testsuite/gtk/accessor-apis.c | 7 |
1 files changed, 5 insertions, 2 deletions
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 (); |