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:
Simon McVittie 2019-07-26 23:51:39 +01:00 committed by su-fang
parent e73cc871c6
commit fb1980e62f
1 changed files with 8 additions and 0 deletions

View File

@ -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++)