mirror of https://gitee.com/openkylin/glib2.0.git
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 <smcv@debian.org> Bug-Debian: https://bugs.debian.org/880883 Bug-Debian: https://bugs.debian.org/917983 Forwarded: not-needed
This commit is contained in:
parent
63c8beae1f
commit
de2c972ddd
|
@ -260,6 +260,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_print ("SKIP: Test is known to be flaky on arm* (#880883, #917983)\n");
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
object = g_object_new (G_TYPE_TEST, NULL);
|
||||
closure = g_cclosure_new (G_CALLBACK (test_signal_handler), &test_data, destroy_data);
|
||||
|
||||
|
|
Loading…
Reference in New Issue