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
This commit is contained in:
Carsten Haitzler 2016-04-19 16:33:33 +09:00
parent b48d3eb04e
commit 1bf509548c
1 changed files with 1 additions and 1 deletions

View File

@ -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);