]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
test/fdpass.c: skip test that fails on FreeBSD 13.0
authorAlex Richardson <arichardson@FreeBSD.org>
Tue, 9 Aug 2022 10:56:18 +0000 (10:56 +0000)
committerSimon McVittie <smcv@collabora.com>
Wed, 10 Aug 2022 11:18:20 +0000 (11:18 +0000)
The /odd-limit/at test passes on 13.1 and 14.0 images, but fails on 13.1.
Debugging has not given me any useful hints why this may be the case, so
disable this test on 13.0 for now.

This allows us to drop the ci_test_fatal: "no" override which will ensure
that any FreeBSD regressions are caught.

.gitlab-ci.yml
test/fdpass.c

index 0492a1931fd0970a76193f35534c2e15ec5cc2df..f46e6ce1911c1eaa7412ebd59c80065d24d12358 100644 (file)
@@ -404,7 +404,6 @@ freebsd image:
     ci_parallel: "${FDO_CI_CONCURRENT:-2}"
     ci_distro: "$BUILD_OS"
     ci_suite: "$FDO_DISTRIBUTION_VERSION"
-    ci_test_fatal: "no" # One undiagnosed test failure in test-fdpass
   script:
     # Start the VM and copy our workspace to the VM
     - /app/vmctl start
index abd415044250bea680174be5977cb1ce6f971413..2584c6939824ba3547fd21a812ac4ce52935192c 100644 (file)
@@ -752,6 +752,15 @@ test_odd_limit (Fixture *f,
   if (f->skip)
     return;
 
+#ifdef __FreeBSD__
+  g_test_message ("Running test on FreeBSD %d...", getosreldate ());
+  if (GPOINTER_TO_INT (data) == 0 && getosreldate () < 1301000)
+    {
+      g_test_skip ("This test fails on FreeBSD < 13.1");
+      return;
+    }
+#endif
+
   test_connect (f, TRUE);
   dbus_connection_set_max_message_unix_fds (f->left_server_conn, 7);
   dbus_connection_set_max_message_unix_fds (f->right_server_conn, 7);