mirror of https://gitee.com/openkylin/glib2.0.git
gvariant test: Don't run at build-time on mips
DEB_ALLOW_FLAKY_TESTS is not quite right here, because we don't know that the test would fail if left for long enough - the problem is that it doesn't get there, because generating random floating-point numbers is very slow on some of our mips hardware. However, it has the right practical effect. Signed-off-by: Simon McVittie <smcv@debian.org> Bug: https://bugs.debian.org/932678 Forwarded: no
This commit is contained in:
parent
e73cc871c6
commit
fb1980e62f
|
@ -2464,6 +2464,14 @@ test_fuzzes (gpointer data)
|
|||
gdouble fuzziness;
|
||||
int i;
|
||||
|
||||
#ifdef __mips__
|
||||
if (g_getenv ("DEB_ALLOW_FLAKY_TESTS") == NULL)
|
||||
{
|
||||
g_test_skip ("Extremely slow on some mips CPUs: #932678");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
fuzziness = GPOINTER_TO_INT (data) / 100.;
|
||||
|
||||
for (i = 0; i < 200; i++)
|
||||
|
|
Loading…
Reference in New Issue