This is an archive of the discontinued LLVM Phabricator instance.

[Test-Suite] Fix all the sanitizer tests to be based on compiler capabilities
ClosedPublic

Authored by beanz on Nov 10 2016, 9:45 AM.

Details

Summary

This patch reworks all the @skip... lines for sanitizer libraries to be based on whether or not the compiler actually works, rather than whether or not the compiler-rt sources are present in some magically derived directory.

Diff Detail

Repository
rL LLVM

Event Timeline

beanz updated this revision to Diff 77506.Nov 10 2016, 9:45 AM
beanz retitled this revision from to [Test-Suite] Fix all the sanitizer tests to be based on compiler capabilities.
beanz updated this object.
beanz added a reviewer: lldb-commits.
beanz added subscribers: tfiala, kubamracek.

Looks fine to me pending that one question on the TSAN check (i.e. if the existing TSAN check is as good as your new ASAN check, LGTM).

packages/Python/lldbsuite/test/functionalities/tsan/basic/TestTsanBasic.py
23 ↗(On Diff #77506)

Seems fine as long as @skipUnlessThreadSanitizer is doing the right type of check like you added for @skipUnlessAddressSanitizer.

beanz added inline comments.Nov 10 2016, 10:22 AM
packages/Python/lldbsuite/test/functionalities/tsan/basic/TestTsanBasic.py
23 ↗(On Diff #77506)

The implementation of skipUnlessAddressSanitizer is basically copy-paste-simplify-modify of skipUnlessThreadSanitizer. They should both have good coverage.

This revision was automatically updated to reflect the committed changes.