Skip to content

Don't use memcmp() to check for identical structures in tests #317

@attipaci

Description

@attipaci

C structs contain padding, which may or may not be initialized to zeroes when the structure is initialized. As such, comparing structs byte-for-byte may fail on some compilers even if the structures do in fact contain the exact same data in their field. Change tests to wean off memcmp().

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions