mirror of https://gitee.com/openkylin/glib2.0.git
Disable some tests on slow architectures which keep failing the tests
[smcv: Modified to use g_test_skip() instead of omitting those test cases completely, and allow them to be re-enabled with a Debian-specific environment variable] Co-authored-by: Simon McVittie <smcv@debian.org> Forwarded: no
This commit is contained in:
parent
de2c972ddd
commit
e8db16fde7
|
@ -520,6 +520,14 @@ test_child_sources (void)
|
|||
GMainLoop *loop;
|
||||
GSource *parent, *child_b, *child_c, *end;
|
||||
|
||||
#if defined(__arm__)
|
||||
if (g_getenv ("DEB_ALLOW_FLAKY_TESTS") == NULL)
|
||||
{
|
||||
g_test_skip ("Not reliable on older ARM hardware");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
ctx = g_main_context_new ();
|
||||
loop = g_main_loop_new (ctx, FALSE);
|
||||
|
||||
|
@ -598,6 +606,14 @@ test_recursive_child_sources (void)
|
|||
GMainLoop *loop;
|
||||
GSource *parent, *child_b, *child_c, *end;
|
||||
|
||||
#if defined(__arm__)
|
||||
if (g_getenv ("DEB_ALLOW_FLAKY_TESTS") == NULL)
|
||||
{
|
||||
g_test_skip ("Not reliable on older ARM hardware");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
ctx = g_main_context_new ();
|
||||
loop = g_main_loop_new (ctx, FALSE);
|
||||
|
||||
|
|
|
@ -177,6 +177,15 @@ test_func (gpointer data)
|
|||
static void
|
||||
test_rounding (void)
|
||||
{
|
||||
|
||||
#if defined(__arm__)
|
||||
if (g_getenv ("DEB_ALLOW_FLAKY_TESTS") == NULL)
|
||||
{
|
||||
g_test_skip ("Not reliable on older ARM hardware");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
loop = g_main_loop_new (NULL, FALSE);
|
||||
|
||||
last_time = g_get_monotonic_time ();
|
||||
|
|
|
@ -484,6 +484,14 @@ test_threaded_toggle_notify (void)
|
|||
"safely from another (the main) thread without causing the "
|
||||
"notifying thread to abort");
|
||||
|
||||
#if defined(__arm__)
|
||||
if (g_getenv ("DEB_ALLOW_FLAKY_TESTS") == NULL)
|
||||
{
|
||||
g_test_skip ("Intermittently takes more than 5 minutes on 32-bit ARM (Debian#1023652)");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
g_object_add_toggle_ref (object, on_toggle_notify, &data);
|
||||
g_object_unref (object);
|
||||
|
||||
|
|
Loading…
Reference in New Issue