diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-02-13 18:14:48 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-02-13 18:14:48 -0500 |
commit | ae9a29f8ce122a6263404eb60043aa968c26d90a (patch) | |
tree | fc268b5337329b780286695815e3a71f4bc29ad3 /testsuite | |
parent | 2866a13f30696f8fed24343f8c70c41e383a8894 (diff) | |
download | gtk+-ae9a29f8ce122a6263404eb60043aa968c26d90a.tar.gz |
Exempt "pages" properties from defaultvalue test
Ironically, these properties are too good - they always
give you a proper value, which is unfortunately different
from the declared default value, which is NULL. So, don't
check these.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/gtk/defaultvalue.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/testsuite/gtk/defaultvalue.c b/testsuite/gtk/defaultvalue.c index f4c335037f..9ef83c1aaf 100644 --- a/testsuite/gtk/defaultvalue.c +++ b/testsuite/gtk/defaultvalue.c @@ -157,7 +157,12 @@ test_type (gconstpointer data) continue; if (g_type_is_a (type, GTK_TYPE_ASSISTANT) && - (strcmp (pspec->name, "use-header-bar") == 0)) + (strcmp (pspec->name, "use-header-bar") == 0 || + strcmp (pspec->name, "pages") == 0)) /* pages always gets a non-NULL value */ + continue; + + if (g_type_is_a (type, GTK_TYPE_STACK) && + (strcmp (pspec->name, "pages") == 0)) /* pages always gets a non-NULL value */ continue; if (g_type_is_a (type, GTK_TYPE_POPOVER) && |