raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=8de2ba5d4732cd308faf5de40831d2416c6fc45b

commit 8de2ba5d4732cd308faf5de40831d2416c6fc45b
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Wed May 18 01:51:52 2016 +0900

    eina test suite vector - make correctness range 2x as big
    
    make correctness rand 2 * DBL_EPSILON due to compilers, fastmath and
    being a little inaccurate sometimes at the bottom end of precision.
    
    @fix
---
 src/tests/eina/eina_test_vector.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tests/eina/eina_test_vector.c 
b/src/tests/eina/eina_test_vector.c
index 3617f7f..d39f9d2 100644
--- a/src/tests/eina/eina_test_vector.c
+++ b/src/tests/eina/eina_test_vector.c
@@ -170,7 +170,7 @@ START_TEST(eina_test_vector3_operations)
    fail_if(res != 75);
 
    res = eina_vector3_distance_get(&v2, &v1);
-   fail_if((res - sqrt(29)) > DBL_EPSILON);
+   fail_if((res - sqrt(29)) > (DBL_EPSILON * 2.0));
 
    res = eina_vector3_distance_square_get(&v2, &v1);
    fail_if(res != 29);

-- 


Reply via email to