From: Simon McVittie Date: Thu, 3 Jan 2019 09:01:03 +0000 Subject: closures test: Skip on arm* unless flaky tests are allowed Choosing the right number of iterations to avoid either taking literally hours on some hardware, or getting spurious failures when one thread starves another, seems to be too hard to get right in practice. Make this test opt-in so that its failures aren't release-critical. We can run it as a separate autopkgtest that is marked flaky. Signed-off-by: Simon McVittie Bug-Debian: https://bugs.debian.org/880883 Bug-Debian: https://bugs.debian.org/917983 Forwarded: not-needed --- gobject/tests/closure-refcount.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gobject/tests/closure-refcount.c b/gobject/tests/closure-refcount.c index 574a5ec..d8496ae 100644 --- a/gobject/tests/closure-refcount.c +++ b/gobject/tests/closure-refcount.c @@ -262,6 +262,14 @@ test_closure_refcount (void) GTest *object; guint i, n_iterations; +#if defined(__aarch64__) || defined(__arm__) + if (g_getenv ("DEB_ALLOW_FLAKY_TESTS") != NULL) + { + g_test_skip ("Known to be flaky on arm* (#880883, #917983)"); + return; + } +#endif + object = g_object_new (G_TYPE_TEST, NULL); closure = g_cclosure_new (G_CALLBACK (test_signal_handler), &test_data, destroy_data);