eina: correctly compar double in eina xattr test.
authorCedric BAIL <cedric@osg.samsung.com>
Mon, 19 Dec 2016 20:04:48 +0000 (12:04 -0800)
committerCedric BAIL <cedric@osg.samsung.com>
Tue, 20 Dec 2016 00:33:46 +0000 (16:33 -0800)
src/tests/eina/eina_test_xattr.c

index 858c6b5..17ecb3c 100644 (file)
@@ -283,7 +283,7 @@ START_TEST(eina_test_xattr_types)
    fail_if(ret != EINA_TRUE);
    ret = eina_xattr_double_get(test_file_path, double_attr, &double_ret);
    fail_if(ret != EINA_TRUE);
-   fail_if(double_data != double_ret);
+   fail_if(!EINA_DBL_CMP(double_data, double_ret));
 
    close(fd);
    unlink(test_file_path);