[gtk/fix-layout-parser-leak] tests/notify: Always print the diagnostic messages
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/fix-layout-parser-leak] tests/notify: Always print the diagnostic messages
- Date: Wed, 17 Jul 2019 15:24:57 +0000 (UTC)
commit 74ee566fbd4caf8a978e5d6ddf0cd2e27a1973b7
Author: Emmanuele Bassi <ebassi gnome org>
Date: Wed Jul 17 16:23:51 2019 +0100
tests/notify: Always print the diagnostic messages
We're using the TAP mode of GTest, so we can always emit diagnostic
messages using g_test_message(), without necessarily caring about
verbosity.
testsuite/gtk/notify.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/testsuite/gtk/notify.c b/testsuite/gtk/notify.c
index 99b8f82ae8..941e1b60fb 100644
--- a/testsuite/gtk/notify.c
+++ b/testsuite/gtk/notify.c
@@ -329,8 +329,7 @@ check_property (GObject *instance, GParamSpec *pspec)
}
else
{
- if (g_test_verbose ())
- g_print ("Skipping property %s.%s of type %s\n", g_type_name (pspec->owner_type), pspec->name,
g_type_name (pspec->value_type));
+ g_test_message ("Skipping property %s.%s of type %s\n", g_type_name (pspec->owner_type), pspec->name,
g_type_name (pspec->value_type));
}
}
@@ -628,8 +627,7 @@ test_type (gconstpointer data)
g_str_equal (pspec->name, "position"))
continue;
- if (g_test_verbose ())
- g_print ("Property %s.%s\n", g_type_name (pspec->owner_type), pspec->name);
+ g_test_message ("Property %s.%s\n", g_type_name (pspec->owner_type), pspec->name);
check_property (instance, pspec);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]