This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt][test] Add shared_unwind requirement
ClosedPublic

Authored by leonardchan on Oct 5 2021, 4:38 PM.

Details

Summary

When using a static libunwind, the check_memcpy.c can fail because it checks that tsan intercepted all memcpy/memmoves in the final binary. Though if the static libunwind is not instrumented, then this will fail because it may contain regular memcpy/memmoves.

This adds a new REQUIRES check for ensuring that this test won't run unless a dynamic libunwind.so is provided.

Diff Detail

Event Timeline

leonardchan created this revision.Oct 5 2021, 4:38 PM
leonardchan requested review of this revision.Oct 5 2021, 4:38 PM
phosek accepted this revision.Oct 5 2021, 10:23 PM

LGTM

compiler-rt/test/lit.common.cfg.py
369–370

That variable doesn't seem to be used anywhere else so you can just inline it.

This revision is now accepted and ready to land.Oct 5 2021, 10:23 PM
This revision was automatically updated to reflect the committed changes.