diff options
author | Simon McVittie <smcv@debian.org> | 2020-11-19 10:44:39 +0000 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2024-03-24 13:47:15 +0000 |
commit | 8d791966a9433b4632ab6520d75a447cba51bf54 (patch) | |
tree | 74b526cd0ff8e1f53d0539b791612d8da9369ebd | |
parent | 785a5cb7320ba1d0c0a3310fa4571afd1201ed34 (diff) |
gdbus-server-auth: Normally skip flaky DBUS_COOKIE_SHA1 tests
These intermittently fail on the buildds, but the failure cannot be
reproduced in a debugging environment.
We do not expect to use D-Bus over TCP on non-Windows platforms: we use
an AF_UNIX socket, which is much more robust and secure. However, when
using AF_UNIX, DBUS_COOKIE_SHA1 is unnecessary, because we can use the
more reliable EXTERNAL authentication.
Forwarded: not-needed
Gbp-Pq: Topic debian
Gbp-Pq: Name gdbus-server-auth-Normally-skip-flaky-DBUS_COOKIE_SHA1-te.patch
-rw-r--r-- | gio/tests/gdbus-server-auth.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gio/tests/gdbus-server-auth.c b/gio/tests/gdbus-server-auth.c index 319a9948b..e7f112a0e 100644 --- a/gio/tests/gdbus-server-auth.c +++ b/gio/tests/gdbus-server-auth.c @@ -327,6 +327,13 @@ do_test_server_auth (InteropFlags flags) } #endif + if ((flags & (INTEROP_FLAGS_TCP | INTEROP_FLAGS_SHA1)) && + g_getenv ("DEB_ALLOW_FLAKY_TESTS") == NULL) + { + g_test_skip ("https://gitlab.gnome.org/GNOME/glib/-/issues/2206"); + goto out; + } + if (flags & INTEROP_FLAGS_ANONYMOUS) server_flags |= G_DBUS_SERVER_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS; if (flags & INTEROP_FLAGS_REQUIRE_SAME_USER) |