This is an archive of the discontinued LLVM Phabricator instance.

[scudo] Make some tests less Linux-y
ClosedPublic

Authored by cryptoad on Feb 16 2018, 8:54 AM.

Details

Summary

Start making the Scudo tests less Linux-y:

  • malloc_usable_size doesn't exist everywhere, so replace them with __sanitizer_get_allocated_size which we provide;
  • move all the memalign related tests into memalign.c since it's also not available everywhere.

I also noticed that the memalign.c was missing a line in one of the loops.

Diff Detail

Event Timeline

cryptoad created this revision.Feb 16 2018, 8:54 AM
Herald added subscribers: Restricted Project, delcypher. · View Herald TranscriptFeb 16 2018, 8:54 AM
alekseyshl accepted this revision.Feb 16 2018, 3:24 PM
This revision is now accepted and ready to land.Feb 16 2018, 3:24 PM
This revision was automatically updated to reflect the committed changes.