testsuite: Stop using g_test_bug()
authorBenjamin Otte <otte@redhat.com>
Fri, 10 May 2019 13:00:12 +0000 (15:00 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 12 May 2019 15:28:18 +0000 (17:28 +0200)
The calls used old bugzilla URLs and nobody cared about that.
So apparently they are very unused.

There's also a potential conflict between gitlab and bugzilla URLs and
what base bug to use there.

The old usages have been converted to comments.

27 files changed:
gtk/gtktestutils.c
testsuite/a11y/misc.c
testsuite/a11y/text.c
testsuite/a11y/value.c
testsuite/gdk/memorytexture.c
testsuite/gdk/rectangle.c
testsuite/gdk/rgba.c
testsuite/gdk/seat.c
testsuite/gtk/bitmask.c
testsuite/gtk/cellarea.c
testsuite/gtk/filterlistmodel.c
testsuite/gtk/filtermodel.c
testsuite/gtk/flattenlistmodel.c
testsuite/gtk/main.c
testsuite/gtk/maplistmodel.c
testsuite/gtk/no-gtk-init.c
testsuite/gtk/rbtree-crash.c
testsuite/gtk/rbtree.c
testsuite/gtk/singleselection.c
testsuite/gtk/slicelistmodel.c
testsuite/gtk/sortlistmodel.c
testsuite/gtk/sortmodel.c
testsuite/gtk/treelistmodel.c
testsuite/gtk/treemodel.c
testsuite/gtk/treestore.c
testsuite/gtk/treeview.c
testsuite/gtk/window.c

index 9fe37861a844b9e79ab1b35b0e5aa1259b2b3333..75d62dc72d74bfb0f8a29435ff0b7dec944698af 100644 (file)
@@ -78,7 +78,6 @@ gtk_test_init (int    *argcp,
   g_test_init (argcp, argvp, NULL);
   gtk_disable_setlocale();
   setlocale (LC_ALL, "en_US.UTF-8");
-  g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=%s");
 
   /* XSendEvent() doesn't work yet on XI2 events.
    * So at the moment gdk_test_simulate_* can only
index a6ae6cacd091c1e82973e4fc839557205a2e3bca..96c870ba52e96818253dafbae50fab4c0ce4dbd9 100644 (file)
@@ -27,7 +27,7 @@ test_popover_parent (void)
   GtkWidget *p;
   AtkObject *a;
 
-  g_test_bug ("733923");
+  /*http://bugzilla.gnome.org/show_bug.cgi?id=733923 */
 
   w = gtk_entry_new ();
 
@@ -50,8 +50,6 @@ main (int argc, char *argv[])
 {
   gtk_test_init (&argc, &argv, NULL);
 
-  g_test_bug_base ("http://bugzilla.gnome.org/");
-
   g_test_add_func ("/popover/accessible-parent", test_popover_parent);
 
   return g_test_run ();
index 7a2a31fd085d1e71fca9f12b83011d46190769de..fc5ac70cc39d4552a4ed7740d3de9bdc441a12bf 100644 (file)
@@ -1064,7 +1064,7 @@ test_bold_label (void)
   AtkObject *atk_obj;
   gchar *text;
 
-  g_test_bug ("126797");
+  /*http://bugzilla.gnome.org/show_bug.cgi?id=126797 */
 
   label = gtk_label_new ("<b>Bold?</b>");
   g_object_ref_sink (label);
@@ -1089,8 +1089,6 @@ main (int argc, char *argv[])
 {
   gtk_test_init (&argc, &argv, NULL);
 
-  g_test_bug_base ("http://bugzilla.gnome.org/");
-
   g_test_add_func ("/text/bold/GtkLabel", test_bold_label);
 
   add_text_tests (gtk_label_new (""));
index 176fd2d4400d0cd44b005f17680d33c5f1dae817..df94c5b0d02aed4c70d9b0d9e084291522e7682f 100644 (file)
@@ -119,8 +119,6 @@ main (int argc, char *argv[])
 {
   gtk_test_init (&argc, &argv, NULL);
 
-  g_test_bug_base ("http://bugzilla.gnome.org/");
-
   add_value_tests (gtk_spin_button_new_with_range (0, 100, 1));
   add_value_tests (gtk_level_bar_new_for_interval (0, 100));
 
index 65d159068020523de6ee692a011522da3c0fc18d..b43281e6b2761fcaea35c867d3da907feaf7c805 100644 (file)
@@ -181,8 +181,6 @@ main (int argc, char *argv[])
 
   g_test_init (&argc, &argv, NULL);
 
-  g_test_bug_base ("http://bugzilla.gnome.org");
-
   enum_class = g_type_class_ref (GDK_TYPE_MEMORY_FORMAT);
 
   for (format = 0; format < GDK_MEMORY_N_FORMATS; format++)
index 1b9cbe9135d89fe5f4db6b8333001de6c5204d35..ead270eea7fd38098c94d57718f1eedae02fad0a 100644 (file)
@@ -72,8 +72,6 @@ main (int argc, char *argv[])
 
   gtk_init ();
 
-  g_test_bug_base ("http://bugzilla.gnome.org/");
-
   g_test_add_func ("/rectangle/equal", test_rectangle_equal);
   g_test_add_func ("/rectangle/intersect", test_rectangle_intersect);
   g_test_add_func ("/rectangle/union", test_rectangle_union);
index fa2da629bfe28545a3e2e9e857276d40a1118245..46ba887d702b12ca8dfcfa825660132df801183b 100644 (file)
@@ -121,7 +121,7 @@ test_color_parse_nonsense (void)
   GdkRGBA color;
   gboolean res;
 
-  g_test_bug ("667485");
+  /*http://bugzilla.gnome.org/show_bug.cgi?id=667485 */
 
   res = gdk_rgba_parse (&color, "rgb(,,)");
   g_assert (!res);
@@ -151,14 +151,12 @@ test_color_parse_nonsense (void)
 int
 main (int argc, char *argv[])
 {
-        g_test_init (&argc, &argv, NULL);
+  g_test_init (&argc, &argv, NULL);
 
-        g_test_bug_base ("http://bugzilla.gnome.org");
+  g_test_add_func ("/rgba/parse", test_color_parse);
+  g_test_add_func ("/rgba/parse/nonsense", test_color_parse_nonsense);
+  g_test_add_func ("/rgba/to-string", test_color_to_string);
+  g_test_add_func ("/rgba/copy", test_color_copy);
 
-        g_test_add_func ("/rgba/parse", test_color_parse);
-        g_test_add_func ("/rgba/parse/nonsense", test_color_parse_nonsense);
-        g_test_add_func ("/rgba/to-string", test_color_to_string);
-        g_test_add_func ("/rgba/copy", test_color_copy);
-
-        return g_test_run ();
+  return g_test_run ();
 }
index 8fadb82a6fafa806b416bfbddd0bb1d2dfa4e211..e87c2b26a6473e3a2303d79df04c8032125ce56d 100644 (file)
@@ -111,8 +111,6 @@ main (int argc, char *argv[])
 
   gtk_init ();
 
-  g_test_bug_base ("http://bugzilla.gnome.org/");
-
   g_test_add_func ("/seat/list", test_list_seats);
   g_test_add_func ("/seat/default", test_default_seat);
 
index d6c1267eee89432a062181fad92bd1f29830bc8d..75aec409a7abcd6cfe58f451060d713dddfb3835 100644 (file)
@@ -454,7 +454,6 @@ main (int argc, char *argv[])
 
   g_test_init (&argc, &argv, NULL);
   setlocale (LC_ALL, "C");
-  g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=%s");
 
   create_masks ();
 
index 07e002781651eebf538729001e333735c948e852..eebe8f9306cf7f84c0976f2135ef419fffdb6c78 100644 (file)
@@ -745,7 +745,6 @@ int
 main (int argc, char *argv[])
 {
   gtk_test_init (&argc, &argv);
-  g_test_bug_base ("http://bugzilla.gnome.org/");
   gtk_test_register_all_types();
 
   g_test_add_func ("/tests/iconview-new", test_iconview_new);
index 07fdf77b6fc9c27a83a9feed4bb5d0a9f4986236..6cd91112553612f1801f9e256bc4d692684da04e 100644 (file)
@@ -311,7 +311,6 @@ main (int argc, char *argv[])
 {
   g_test_init (&argc, &argv, NULL);
   setlocale (LC_ALL, "C");
-  g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=%s");
 
   number_quark = g_quark_from_static_string ("Hell and fire was spawned to be released.");
   changes_quark = g_quark_from_static_string ("What did I see? Can I believe what I saw?");
index ce0defacf58ed7d80dd3e9594cb52c8b4b04e012..48351bc3204b140328aae6c184bdc1e8ddbffab4 100644 (file)
@@ -5727,7 +5727,7 @@ specific_bug_301558 (void)
   int i;
   gboolean add;
 
-  g_test_bug ("301558");
+  /*http://bugzilla.gnome.org/show_bug.cgi?id=301558 */
 
   tree = gtk_tree_store_new (2, G_TYPE_INT, G_TYPE_BOOLEAN);
   gtk_tree_store_append (tree, &iter, NULL);
@@ -5803,7 +5803,7 @@ specific_bug_311955 (void)
   int n;
   GtkTreePath *path;
 
-  g_test_bug ("311955");
+  /*http://bugzilla.gnome.org/show_bug.cgi?id=311955 */
 
   store = gtk_tree_store_new (1, G_TYPE_INT);
 
@@ -5972,7 +5972,7 @@ specific_bug_346800 (void)
   store = gtk_tree_store_newv (2, columns);
   model = GTK_TREE_MODEL (store);
 
-  g_test_bug ("346800");
+  /*http://bugzilla.gnome.org/show_bug.cgi?id=346800 */
 
   filter = GTK_TREE_MODEL_FILTER (gtk_tree_model_filter_new (model, NULL));
   gtk_tree_model_filter_set_visible_column (filter, 1);
@@ -6031,7 +6031,7 @@ specific_bug_464173 (void)
   GtkWidget *view G_GNUC_UNUSED;
   gboolean visible = TRUE;
 
-  g_test_bug ("464173");
+  /*http://bugzilla.gnome.org/show_bug.cgi?id=464173 */
 
   model = gtk_tree_store_new (1, G_TYPE_STRING);
   gtk_tree_store_append (model, &iter1, NULL);
@@ -6075,7 +6075,7 @@ specific_bug_540201 (void)
 
   GtkWidget *tree_view G_GNUC_UNUSED;
 
-  g_test_bug ("540201");
+  /*http://bugzilla.gnome.org/show_bug.cgi?id=540201 */
 
   store = gtk_tree_store_new (1, G_TYPE_INT);
 
@@ -6128,7 +6128,7 @@ specific_bug_549287 (void)
   GtkTreeIter iter;
   GtkTreeIter *swap, *parent, *child;
 
-  g_test_bug ("529287");
+  /*http://bugzilla.gnome.org/show_bug.cgi?id=529287 */
 
   store = gtk_tree_store_new (1, G_TYPE_STRING);
   filtered = gtk_tree_model_filter_new (GTK_TREE_MODEL (store), NULL);
@@ -6227,7 +6227,7 @@ specific_bug_621076 (void)
   GtkTreeIter item_iter;
   SignalMonitor *monitor;
 
-  g_test_bug ("621076");
+  /*http://bugzilla.gnome.org/show_bug.cgi?id=621076 */
 
   store = gtk_tree_store_new (1, G_TYPE_STRING);
   filter = gtk_tree_model_filter_new (GTK_TREE_MODEL (store), NULL);
index c06e30b3509d6fee991a73225230e14b1e837f09..94de2490efa94dda2f15c6c9052d616adb3b3d5a 100644 (file)
@@ -356,7 +356,6 @@ main (int argc, char *argv[])
 {
   g_test_init (&argc, &argv, NULL);
   setlocale (LC_ALL, "C");
-  g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=%s");
 
   number_quark = g_quark_from_static_string ("Hell and fire was spawned to be released.");
   changes_quark = g_quark_from_static_string ("What did I see? Can I believe what I saw?");
index 727ae032bbd0e15328ba15db488a724c8cde763e..cdfd4d058d91ca0b96a8fca7b010c85fc44b4f89 100644 (file)
@@ -22,7 +22,6 @@ main (int argc, char *argv[])
   g_test_init (&argc, &argv, NULL);
   gtk_disable_setlocale();
   setlocale (LC_ALL, "C");
-  g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=%s");
 
   g_test_add_func ("/main/init", test_init);
 
index b32d95b12886bd9c80d81defba46aa157760f5ab..11f87f0d373cec3ba331706986614607c5649d9d 100644 (file)
@@ -286,7 +286,6 @@ main (int argc, char *argv[])
 {
   g_test_init (&argc, &argv, NULL);
   setlocale (LC_ALL, "C");
-  g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=%s");
 
   number_quark = g_quark_from_static_string ("Hell and fire was spawned to be released.");
   changes_quark = g_quark_from_static_string ("What did I see? Can I believe what I saw?");
index 29d151f8ccc28451e5d6c2b74b6ac4c7c69847e1..b7d1be66d7d5a830f03faa6ba12d3ebae49939e0 100644 (file)
@@ -49,7 +49,6 @@ main (int   argc,
   g_test_init (&argc, &argv, NULL);
   g_setenv ("GTK_MODULES", "", TRUE);
   setlocale (LC_ALL, "C");
-  g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=%s");
 
 
   g_test_add_func ("/no_gtk_init/gdk_cairo_set_source_pixbuf", test_gdk_cairo_set_source_pixbuf);
index 7abc6c2d7fbc29d30977bc1e375f83c282784698..78bdfdac7bf0c2d6066cb5f4ad3e6ad2f79e0165 100644 (file)
@@ -292,7 +292,6 @@ main (int argc, char *argv[])
 {
   g_test_init (&argc, &argv, NULL);
   setlocale (LC_ALL, "C");
-  g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=%s");
 
   g_test_add_func ("/rbtree/crash", test_crash);
   g_test_add_func ("/rbtree/crash2", test_crash2);
index c29eb1fbd86209eab6a32b85f5def6009eeb2829..9e636bb47c51826a153b320646f2c28cd4c181cb 100644 (file)
@@ -514,7 +514,6 @@ main (int   argc,
 {
   g_test_init (&argc, &argv, NULL);
   setlocale (LC_ALL, "C");
-  g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=%s");
 
   g_test_add_func ("/rbtree/create", test_create);
   g_test_add_func ("/rbtree/insert_after", test_insert_after);
index 28cfa72fdbf90fd13dfb34b98b9f5e728b44f290..24de458e1c8a062a4a5ff61b695e7dfd3609d977 100644 (file)
@@ -647,7 +647,6 @@ main (int argc, char *argv[])
 {
   g_test_init (&argc, &argv, NULL);
   setlocale (LC_ALL, "C");
-  g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=%s");
 
   number_quark = g_quark_from_static_string ("Hell and fire was spawned to be released.");
   changes_quark = g_quark_from_static_string ("What did I see? Can I believe what I saw?");
index 01717c8f51ac565221014e5ee9c115f049cbf972..a672feeac853993e287cd39251fab99181fb6db4 100644 (file)
@@ -324,7 +324,6 @@ main (int argc, char *argv[])
 {
   g_test_init (&argc, &argv, NULL);
   setlocale (LC_ALL, "C");
-  g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=%s");
 
   number_quark = g_quark_from_static_string ("Hell and fire was spawned to be released.");
   changes_quark = g_quark_from_static_string ("What did I see? Can I believe what I saw?");
index 1b54d0b9762181abbb53b48ffee0dcf8b70d0147..03b5c8ad64547de0321f07fdc53893eb768c2e29 100644 (file)
@@ -385,7 +385,6 @@ main (int argc, char *argv[])
 {
   g_test_init (&argc, &argv, NULL);
   setlocale (LC_ALL, "C");
-  g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=%s");
 
   number_quark = g_quark_from_static_string ("Hell and fire was spawned to be released.");
   changes_quark = g_quark_from_static_string ("What did I see? Can I believe what I saw?");
index f9a7eb188635bb4a64a80b6ef3953204dd61b8e5..4cf57a07cbdf42d8196aaec09e020bef1929aff3 100644 (file)
@@ -1040,7 +1040,7 @@ specific_bug_300089 (void)
   GtkTreePath *path;
   GtkTreeIter iter, iter2, sort_iter;
 
-  g_test_bug ("300089");
+  /*http://bugzilla.gnome.org/show_bug.cgi?id=300089 */
 
   child_model = GTK_TREE_MODEL (gtk_tree_store_new (1, G_TYPE_STRING));
 
@@ -1084,7 +1084,7 @@ specific_bug_364946 (void)
   GtkTreeIter a, aa, aaa, aab, iter;
   GtkTreeModel *s_model;
 
-  g_test_bug ("364946");
+  /*http://bugzilla.gnome.org/show_bug.cgi?id=364946 */
 
   store = gtk_tree_store_new (1, G_TYPE_STRING);
 
@@ -1187,7 +1187,7 @@ specific_bug_698846 (void)
   GtkTreeIter iter;
   guint count = 0;
 
-  g_test_bug ("698846");
+  /*http://bugzilla.gnome.org/show_bug.cgi?id=698846 */
 
   store = gtk_list_store_new (1, G_TYPE_STRING);
   sorted = gtk_tree_model_sort_new_with_model (GTK_TREE_MODEL (store));
@@ -1228,7 +1228,7 @@ sort_column_change (void)
   GtkSortType order;
   gboolean ret;
 
-  g_test_bug ("792459");
+  /*http://bugzilla.gnome.org/show_bug.cgi?id=792459 */
 
   store = gtk_list_store_new (1, G_TYPE_STRING);
   sorted = gtk_tree_model_sort_new_with_model (GTK_TREE_MODEL (store));
index 91a7b180f73e3e812b5eaf921f99a03c78b15b02..a54d869aa3f37f874355db99d82c806e8c6bda8c 100644 (file)
@@ -254,7 +254,6 @@ main (int argc, char *argv[])
 {
   g_test_init (&argc, &argv, NULL);
   setlocale (LC_ALL, "C");
-  g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=%s");
 
   number_quark = g_quark_from_static_string ("Hell and fire was spawned to be released.");
   changes_quark = g_quark_from_static_string ("What did I see? Can I believe what I saw?");
index 59677a25c6fc93ce3a1a27a22448014d7cca1346..b5615a3057801916fbe3157ac2430f0a2f1bfec9 100644 (file)
@@ -25,8 +25,6 @@ main (int    argc,
 {
   gtk_test_init (&argc, &argv, NULL);
 
-  g_test_bug_base ("http://bugzilla.gnome.org/");
-
   register_list_store_tests ();
   register_tree_store_tests ();
   register_model_ref_count_tests ();
index 109b0dcb44406f55023eaaf2a90a138c325067fc..a58ab780f99f7dae7b4c991f3f7f71037d0fa494 100644 (file)
@@ -1026,7 +1026,7 @@ specific_bug_77977 (void)
 
   /* Stripped down version of test case for bug 77977 by Damon Chaplin */
 
-  g_test_bug ("77977");
+  /*http://bugzilla.gnome.org/show_bug.cgi?id=77977 */
 
   tree_store = gtk_tree_store_new (1, G_TYPE_STRING);
 
@@ -1064,7 +1064,7 @@ specific_bug_698396 (void)
   GtkTreeStore *tree_store;
   gint new_order[1] = { 0 };
 
-  g_test_bug ("698396");
+  /*http://bugzilla.gnome.org/show_bug.cgi?id=698396 */
 
   tree_store = gtk_tree_store_new (1, G_TYPE_STRING);
 
index eae3dc014c31d1a453110e8367e417fd20212a18..13dc43785ad07007ff993292e2cd3d42b89ae5b9 100644 (file)
@@ -26,7 +26,7 @@ test_bug_546005 (void)
   GtkListStore *list_store;
   GtkWidget *view;
 
-  g_test_bug ("546005");
+  /*http://bugzilla.gnome.org/show_bug.cgi?id=546005 */
 
   /* Tests provided by Bjorn Lindqvist, Paul Pogonyshev */
   view = gtk_tree_view_new ();
@@ -78,7 +78,7 @@ test_bug_539377 (void)
   GtkTreePath *path;
   GtkListStore *list_store;
 
-  g_test_bug ("539377");
+  /*http://bugzilla.gnome.org/show_bug.cgi?id=539377 */
 
   /* Test provided by Bjorn Lindqvist */
 
@@ -236,7 +236,7 @@ test_selection_count (void)
   GtkTreeSelection *selection;
   GtkWidget *view;
 
-  g_test_bug ("702957");
+  /*http://bugzilla.gnome.org/show_bug.cgi?id=702957 */
 
   list_store = gtk_list_store_new (1, G_TYPE_STRING);
   view = gtk_tree_view_new_with_model (GTK_TREE_MODEL (list_store));
@@ -299,7 +299,7 @@ test_selection_empty (void)
   GtkWidget *view;
   GtkTreeIter iter;
 
-  g_test_bug ("712760");
+  /*http://bugzilla.gnome.org/show_bug.cgi?id=712760 */
 
   list_store = gtk_list_store_new (1, G_TYPE_STRING);
   view = gtk_tree_view_new_with_model (GTK_TREE_MODEL (list_store));
@@ -340,7 +340,6 @@ main (int    argc,
       char **argv)
 {
   gtk_test_init (&argc, &argv, NULL);
-  g_test_bug_base ("http://bugzilla.gnome.org/");
 
   g_test_add_func ("/TreeView/cursor/bug-546005", test_bug_546005);
   g_test_add_func ("/TreeView/cursor/bug-539377", test_bug_539377);
index 186570983e64edd91ef58f81f4aa19bbc6a9591d..bd3a8038bbe9bcd17156a4ebc5aa6ae9d42b0364 100644 (file)
@@ -218,7 +218,7 @@ test_show_hide (void)
   GtkWidget *window;
   gint w, h, w1, h1;
 
-  g_test_bug ("696882");
+  /*http://bugzilla.gnome.org/show_bug.cgi?id=696882 */
 
   /* test that hide/show does not affect the size */
 
@@ -258,7 +258,6 @@ main (int argc, char *argv[])
   gint i;
 
   gtk_test_init (&argc, &argv);
-  g_test_bug_base ("http://bugzilla.gnome.org/");
 
   for (i = 0; i < argc; i++)
     {