[gtk/wip/otte/listview] Restrict splice tests to new-enough GLib



commit 9e2eb047d01c0b0a4748647064b82a17945febd6
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jan 6 12:28:10 2019 -0500

    Restrict splice tests to new-enough GLib
    
    Copied from the sort list model tests.

 testsuite/gtk/slicelistmodel.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/testsuite/gtk/slicelistmodel.c b/testsuite/gtk/slicelistmodel.c
index 498b6da71a..960133c805 100644
--- a/testsuite/gtk/slicelistmodel.c
+++ b/testsuite/gtk/slicelistmodel.c
@@ -333,7 +333,9 @@ main (int argc, char *argv[])
   g_test_add_func ("/slicelistmodel/create", test_create);
   g_test_add_func ("/slicelistmodel/set-model", test_set_model);
   g_test_add_func ("/slicelistmodel/set-slice", test_set_slice);
+#if GLIB_CHECK_VERSION (2, 58, 0) /* g_list_store_splice() is broken before 2.58 */
   g_test_add_func ("/slicelistmodel/changes", test_changes);
+#endif
 
   return g_test_run ();
 }


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