This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Make TSan errors fatal when running the test suite
ClosedPublic

Authored by JDevlieghere on Aug 4 2023, 3:55 PM.

Details

Summary

Set the halt_on_error runtime flag to make TSan errors fatal when running the test suite. For the API tests the environment variables are set conditionally on whether the TSan is enabled. The Shell tests don't have that logic and I don't think it's worth duplicating it as setting the environment variable is harmless. For consistency, I've also mirrored the ASAN option (detect_stack_use_after_return=1) for the Shell tests.

Diff Detail

Event Timeline

JDevlieghere created this revision.Aug 4 2023, 3:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 4 2023, 3:55 PM
JDevlieghere requested review of this revision.Aug 4 2023, 3:55 PM

Include the unit tests

This revision is now accepted and ready to land.Aug 7 2023, 9:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 7 2023, 1:20 PM