This is an archive of the discontinued LLVM Phabricator instance.

[tsan] Make tests that use CLOCK_MONOTONIC portable
ClosedPublic

Authored by kubamracek on Nov 20 2015, 1:25 AM.

Details

Summary

Several tests rely on CLOCK_MONOTONIC, which doesn't exist on OS X. This patch fixes these tests by either disabling them (in case of cond_version.c which doesn't make sense on OS X), or by porting the test to also work on OS X.

Diff Detail

Event Timeline

kubamracek updated this revision to Diff 40748.Nov 20 2015, 1:25 AM
kubamracek retitled this revision from to [tsan] Make tests that use CLOCK_MONOTONIC portable.
kubamracek updated this object.
kubamracek added reviewers: dvyukov, kcc, glider, samsonov.
dvyukov accepted this revision.Nov 20 2015, 1:54 AM
dvyukov edited edge metadata.
This revision is now accepted and ready to land.Nov 20 2015, 1:54 AM
This revision was automatically updated to reflect the committed changes.