Details
-
Test
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
0.13.0
Description
I believe the assertions here are incorrect. You can't use memcmp to compare structs
On my machine (64bits linux) int are 4 bytes, but the struct fields are 8 bytes aligned, so this line fails:
ASSERT_EQ(memcmp(&plasma_objects[object_ids[0]], &plasma_objects_return[0],
sizeof(PlasmaObject)),
0);
even though the struct contents are the same.
Attachments
Issue Links
- is duplicated by
-
ARROW-5036 [Plasma][C++] Serialization tests resort to memcpy to check equality
- Closed
- links to