Commit f3be33ca authored by Simon McVittie's avatar Simon McVittie

tests: Tolerate greater rendering differences on all non-x86_64

Previously, this used 32-bit vs. 64-bit to discriminate, with
32-bit architectures allowed to deviate more from the reference
rendering (mainly because the i387 FPU used on baseline i386
builds has excess precision in its FP registers). However, one
test also produces a colour channel difference of 3 on
mips64el, a 64-bit architecture; tolerate this too.
Signed-off-by: Simon McVittie's avatarSimon McVittie <>
parent 82604290
......@@ -350,8 +350,12 @@ rsvg_cairo_check (gconstpointer data)
width_a, height_a, width_b, height_b);
else {
#ifdef __x86_64__
const unsigned int MAX_DIFF = 2;
/* */
const unsigned int MAX_DIFF = sizeof (long) == 8 ? 2 : 10;
const unsigned int MAX_DIFF = 10;
surface_diff = cairo_image_surface_create (CAIRO_FORMAT_ARGB32,
dimensions.width, dimensions.height);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment