mirror of https://gitee.com/openkylin/glib2.0.git
Skip test which performs some unreliable floating point comparisons
[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> Bug: https://gitlab.gnome.org/GNOME/glib/issues/820 Forwarded: no Gbp-Pq: Topic debian Gbp-Pq: Name Skip-test-which-performs-some-unreliable-floating-point-c.patch
This commit is contained in:
parent
2b782b1c51
commit
03a7e5125a
|
@ -33,6 +33,12 @@ test_timer_basic (void)
|
|||
volatile gdouble elapsed;
|
||||
gulong micros;
|
||||
|
||||
if (g_getenv ("DEB_ALLOW_FLAKY_TESTS") == NULL)
|
||||
{
|
||||
g_test_skip ("Not reliable due to floating-point rounding (glib#820)");
|
||||
return;
|
||||
}
|
||||
|
||||
timer = g_timer_new ();
|
||||
|
||||
elapsed = g_timer_elapsed (timer, µs);
|
||||
|
|
Loading…
Reference in New Issue