raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=1bf509548c620e48f8fac18e261c4c9278d4a2df

commit 1bf509548c620e48f8fac18e261c4c9278d4a2df
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Tue Apr 19 16:33:33 2016 +0900

    eina value test - gix blob check to check only relevant fields
    
    the value check for blobs was checking unused fields in a union and
    thats just bad. check only fields that matter to the blob.
    
    @fix
---
 src/tests/eina/eina_test_value.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tests/eina/eina_test_value.c b/src/tests/eina/eina_test_value.c
index 287a200..48077e6 100644
--- a/src/tests/eina/eina_test_value.c
+++ b/src/tests/eina/eina_test_value.c
@@ -2401,7 +2401,7 @@ START_TEST(eina_value_test_blob)
    fail_unless(eina_value_get(value, &out));
    fail_unless(out.memory == blob);
    fail_unless(out.size == sizeof(blob));
-   fail_unless(memcmp(&in, &out, sizeof(Eina_Value_Blob)) == 0);
+   fail_unless(memcmp(in.memory, out.memory, in.size) == 0);
 
    str = eina_value_to_string(value);
    fail_unless(str != NULL);

-- 


Reply via email to