From: Matthias Clasen Date: Sat, 8 Oct 2022 01:15:03 +0000 (-0400) Subject: testsuite: Ignore deprecations X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~9^2~182^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c32fed9238090f3a1ae55fe0bc5c609493bcfa39;p=gtk4.git testsuite: Ignore deprecations For now, just ignore deprecations. Eventually, we will have to go through, drop demos that are for wholly deprecated widgets, and update others. --- diff --git a/testsuite/gtk/builder.c b/testsuite/gtk/builder.c index 88dc7c853a..1e15588b50 100644 --- a/testsuite/gtk/builder.c +++ b/testsuite/gtk/builder.c @@ -25,6 +25,8 @@ #include #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + #ifdef G_OS_WIN32 # define _BUILDER_TEST_EXPORT __declspec(dllexport) #else diff --git a/testsuite/gtk/filtermodel.c b/testsuite/gtk/filtermodel.c index 974b81339b..f9826fb50c 100644 --- a/testsuite/gtk/filtermodel.c +++ b/testsuite/gtk/filtermodel.c @@ -21,6 +21,8 @@ #include "treemodel.h" #include "gtktreemodelrefcount.h" +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + /* Left to do: * - Proper coverage checking to see if the unit tests cover * all possible cases. diff --git a/testsuite/gtk/gtktreemodelrefcount.c b/testsuite/gtk/gtktreemodelrefcount.c index 223d8a0d94..01a97a0c8c 100644 --- a/testsuite/gtk/gtktreemodelrefcount.c +++ b/testsuite/gtk/gtktreemodelrefcount.c @@ -18,6 +18,7 @@ #include "config.h" #include "gtktreemodelrefcount.h" +G_GNUC_BEGIN_IGNORE_DEPRECATIONS /* The purpose of this GtkTreeModel is to keep record of the reference count * of each node. The reference count does not effect the functioning of diff --git a/testsuite/gtk/modelrefcount.c b/testsuite/gtk/modelrefcount.c index 48222dc243..18346e2636 100644 --- a/testsuite/gtk/modelrefcount.c +++ b/testsuite/gtk/modelrefcount.c @@ -18,6 +18,8 @@ #include "gtktreemodelrefcount.h" #include "treemodel.h" +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + /* And the tests themselves */ static void diff --git a/testsuite/gtk/object.c b/testsuite/gtk/object.c index 045f3b48a9..96e9daa9cf 100644 --- a/testsuite/gtk/object.c +++ b/testsuite/gtk/object.c @@ -269,11 +269,13 @@ widget_test_properties (GtkWidget *widget, static void widget_fixups (GtkWidget *widget) { +G_GNUC_BEGIN_IGNORE_DEPRECATIONS /* post-constructor for widgets that need additional settings to work correctly */ if (GTK_IS_COMBO_BOX_TEXT (widget)) { gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (widget), "test text"); } +G_GNUC_END_IGNORE_DEPRECATIONS } static void diff --git a/testsuite/gtk/sortmodel.c b/testsuite/gtk/sortmodel.c index f717e4a894..39bab183cd 100644 --- a/testsuite/gtk/sortmodel.c +++ b/testsuite/gtk/sortmodel.c @@ -20,6 +20,7 @@ #include "treemodel.h" #include "gtktreemodelrefcount.h" +G_GNUC_BEGIN_IGNORE_DEPRECATIONS static void ref_count_single_level (void) diff --git a/testsuite/gtk/treemodel.c b/testsuite/gtk/treemodel.c index 3a0c0bc3ec..6dffbdd1e5 100644 --- a/testsuite/gtk/treemodel.c +++ b/testsuite/gtk/treemodel.c @@ -19,6 +19,8 @@ #include "treemodel.h" +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + int main (int argc, char **argv) diff --git a/testsuite/gtk/treemodel.h b/testsuite/gtk/treemodel.h index cd32a1ead6..249defc24f 100644 --- a/testsuite/gtk/treemodel.h +++ b/testsuite/gtk/treemodel.h @@ -17,6 +17,8 @@ #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + void register_list_store_tests (void); void register_tree_store_tests (void); void register_sort_model_tests (void); diff --git a/testsuite/gtk/treepath.c b/testsuite/gtk/treepath.c index 1f2fb7688f..242a927880 100644 --- a/testsuite/gtk/treepath.c +++ b/testsuite/gtk/treepath.c @@ -19,6 +19,8 @@ #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + static void test_append (void) { diff --git a/testsuite/gtk/treeview.c b/testsuite/gtk/treeview.c index 1ea7e7ef1a..4ddaf65f7c 100644 --- a/testsuite/gtk/treeview.c +++ b/testsuite/gtk/treeview.c @@ -17,6 +17,8 @@ #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + static void test_bug_546005 (void) {