[gegl] tests: make test-image-compare less hairtriggered



commit 113a233ffd8e985247e1fe4bc3fdc22dd459301b
Author: Øyvind Kolås <pippin gimp org>
Date:   Thu May 11 19:49:26 2017 +0200

    tests: make test-image-compare less hairtriggered
    
    Something, probably under our control is causing this test to sometimes fail,
    possibly related to a performance race about different level of good enough
    babl-fast paths, hopefully fixes bug #772991

 tests/simple/test-image-compare.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/simple/test-image-compare.c b/tests/simple/test-image-compare.c
index 318f69c..367d02b 100644
--- a/tests/simple/test-image-compare.c
+++ b/tests/simple/test-image-compare.c
@@ -108,7 +108,7 @@ compare_values (GeglNode            *comparison,
   test_result = SUCCESS;
 
   if (fabs (actual_result.max_diff - expected_result->max_diff)
-      > GEGL_FLOAT_EPSILON)
+      > GEGL_FLOAT_EPSILON * 10)
     {
       g_printerr ("The max_diff property differs: %f instead of %f. ",
                   (gfloat) actual_result.max_diff,
@@ -116,7 +116,7 @@ compare_values (GeglNode            *comparison,
       test_result = FAILURE;
     }
   if (fabs (actual_result.avg_diff_wrong - expected_result->avg_diff_wrong)
-      > GEGL_FLOAT_EPSILON)
+      > GEGL_FLOAT_EPSILON * 10)
     {
       g_printerr ("The avg_diff_wrong property differs: %f instead of %f. ",
                   (gfloat) actual_result.avg_diff_wrong,
@@ -124,7 +124,7 @@ compare_values (GeglNode            *comparison,
       test_result = FAILURE;
     }
   if (fabs (actual_result.avg_diff_total - expected_result->avg_diff_total)
-      > GEGL_FLOAT_EPSILON)
+      > GEGL_FLOAT_EPSILON * 10)
     {
       g_printerr ("The avg_diff_total property differs: %f instead of %f. ",
                   (gfloat) actual_result.avg_diff_total,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]