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

index b4a843e..4fdbfc9 100644 (file)
@@ -115,7 +115,7 @@ _done_int_cb(void *data EINA_UNUSED, Eio_File *handler EINA_UNUSED, int xattr_in
 static void
 _done_double_cb(void *data EINA_UNUSED, Eio_File *handler EINA_UNUSED, double xattr_double)
 {
-   fail_if(xattr_double != double_data);
+   fail_if(!EINA_DBL_CMP(xattr_double, double_data));
 
    ecore_main_loop_quit();
 }