[glib/wip/freebsd-gdbus-names] tests: Don't run new test from !1904 on FreeBSD CI




commit 45d3b25e40420e13c8cfa6280efbd156f9079c32
Author: Simon McVittie <smcv collabora com>
Date:   Thu Aug 5 15:02:24 2021 +0100

    tests: Don't run new test from !1904 on FreeBSD CI
    
    This does not seem to be reliable on FreeBSD: it intermittently times
    out. Disable it during normal CI runs on FreeBSD, so that we can
    continue to use the rest of the test-suite as a CI gate on FreeBSD,
    and so that we can continue to use this test as a CI gate on all other
    architectures.
    
    Mitigates: https://gitlab.gnome.org/GNOME/glib/-/issues/2457
    Signed-off-by: Simon McVittie <smcv collabora com>

 gio/tests/gdbus-names.c | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/gio/tests/gdbus-names.c b/gio/tests/gdbus-names.c
index 8504220a9..c9fce7b0d 100644
--- a/gio/tests/gdbus-names.c
+++ b/gio/tests/gdbus-names.c
@@ -1038,6 +1038,14 @@ watch_with_different_context (gboolean unwatch_early)
   GThread *watcher;
   guint id;
 
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+  if (!g_test_thorough ())
+    {
+      g_test_incomplete ("https://gitlab.gnome.org/GNOME/glib/-/issues/2457";);
+      return;
+    }
+#endif
+
   session_bus_up ();
 
   connection = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, NULL);


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