This is an archive of the discontinued LLVM Phabricator instance.

Remove test cases, which rely on the default sanitizer blacklists.
ClosedPublic

Authored by krasin on Aug 13 2015, 4:21 PM.

Diff Detail

Event Timeline

krasin updated this revision to Diff 32107.Aug 13 2015, 4:21 PM
krasin retitled this revision from to Remove test cases, which rely on the default sanitizer blacklists. The default blacklists may vary across different architectures and configurations. It was not wise to include into http://reviews.llvm.org/D11968.
krasin updated this object.
krasin added a reviewer: chapuni.
krasin added subscribers: pcc, cfe-commits.
krasin retitled this revision from Remove test cases, which rely on the default sanitizer blacklists. The default blacklists may vary across different architectures and configurations. It was not wise to include into http://reviews.llvm.org/D11968 to Remove test cases, which rely on the default sanitizer blacklists..Aug 13 2015, 4:22 PM
krasin updated this object.
pcc added a comment.Aug 13 2015, 4:25 PM

You could create a fake resource directory which contains only the asan_blacklist.txt file. See test/Driver/Inputs/resource_dir for an example of this kind of thing.

krasin added a comment.EditedAug 13 2015, 4:28 PM
In D12021#224102, @pcc wrote:

You could create a fake resource directory which contains only the asan_blacklist.txt file. See test/Driver/Inputs/resource_dir for an example of this kind of thing.

I believe it's unnecessary. The default blacklists are handled in https://github.com/llvm-mirror/clang/blob/82a8792ad361e9443615fc81ee8dd37c76e64dbd/lib/Driver/SanitizerArgs.cpp#L82, and the code I added is in the frontend. The tests I am removing are not really testing that blacklists get into the deps. They test that default blacklists are explicitly passed from the toolchain to the frontend. If there's no such a test, I could add it in a separate CL, and it will be a driver test, not a frontend test.

pcc accepted this revision.Aug 13 2015, 4:34 PM
pcc added a reviewer: pcc.

LGTM

Yes, this can be a separate driver test.

This revision is now accepted and ready to land.Aug 13 2015, 4:34 PM
krasin closed this revision.Aug 13 2015, 4:38 PM