This is an archive of the discontinued LLVM Phabricator instance.

[scudo] Add test exercising pthreads
ClosedPublic

Authored by cryptoad on Mar 23 2017, 11:15 AM.

Details

Summary

Scudo didn't have any test using multiple threads. Add one, borrowed from lsan.

Event Timeline

cryptoad created this revision.Mar 23 2017, 11:15 AM
alekseyshl edited edge metadata.Mar 23 2017, 11:31 AM

What exactly are you testing here? That it does not crash? I do not see any checks.

Correct. Testing that it finishes properly without incidents.

alekseyshl accepted this revision.Mar 23 2017, 12:02 PM

Please mention that explicitly in the top comment then.

Also, I don't think "Borrowed from lsan." adds any value. What does it mean, should we keep those tests in sync? I believe not, so, just remove it.

LGTM

This revision is now accepted and ready to land.Mar 23 2017, 12:02 PM
cryptoad updated this revision to Diff 92842.Mar 23 2017, 12:10 PM

Addressing Aleksey's comments.

Thank you Aleksey!

cryptoad closed this revision.Mar 23 2017, 12:33 PM