[gtk/wip/otte/for-master: 2/3] testsuite: Be more exhaustive



commit 4d908461827e17cc8da12a9e9dc3fe2d6d43708e
Author: Benjamin Otte <otte redhat com>
Date:   Thu Jul 9 22:26:57 2020 +0200

    testsuite: Be more exhaustive
    
    Create larger source models in tests, so that we hit the incremental
    batch size more often and have a higher chance to expose bugs there.

 testsuite/gtk/filterlistmodel-exhaustive.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/testsuite/gtk/filterlistmodel-exhaustive.c b/testsuite/gtk/filterlistmodel-exhaustive.c
index 117430b68f..00be63ba08 100644
--- a/testsuite/gtk/filterlistmodel-exhaustive.c
+++ b/testsuite/gtk/filterlistmodel-exhaustive.c
@@ -1,7 +1,5 @@
-/* GtkRBTree tests.
- *
- * Copyright (C) 2011, Red Hat, Inc.
- * Authors: Benjamin Otte <otte gnome org>
+/*
+ * Copyright © 2020 Benjamin Otte
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -324,7 +322,7 @@ test_two_filters (gconstpointer model_id)
 
           for (k = 0; k < 10; k++)
             {
-              source = create_source_model (0, 20);
+              source = create_source_model (0, 1000);
               gtk_filter_list_model_set_model (compare, source);
               gtk_filter_list_model_set_model (model1, source);
               g_object_unref (source);
@@ -418,7 +416,7 @@ test_model_changes (gconstpointer model_id)
       if (add)
         {
           /* We want at least one element, otherwise the filters will see no changes */
-          GListModel *source = create_source_model (1, 20);
+          GListModel *source = create_source_model (1, 100);
           GtkFilterListModel *model1 = create_filter_list_model (model_id, source, multi);
           g_list_store_splice (store1,
                                position,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]