[libcxx] Always enable availability in the lit test suite.
authorLouis Dionne <ldionne@apple.com>
Tue, 4 Dec 2018 19:31:08 +0000 (19:31 +0000)
committerLouis Dionne <ldionne@apple.com>
Tue, 4 Dec 2018 19:31:08 +0000 (19:31 +0000)
commitf14927e98e23a3c1806eeb12b89252c35e77c1ff
treebd722506d952438f69661df07b4aaf62bc119020
parenteb5bfac7ce48246fd88130d2bf01eb18237792ef
[libcxx] Always enable availability in the lit test suite.

Summary:
Running the tests without availability enabled doesn't really make sense:
availability annotations allow catching errors at compile-time instead
of link-time. Running the tests without availability enabled allows
confirming that a test breaks at link-time under some configuration,
but it is more useful to instead check that it should fail at compile-time.

Always enabling availability in the lit test suite will greatly simplify
XFAILs and troubleshooting of failing tests, which is currently a giant
pain because we have these two levels of possible failure: link-time and
compile-time.

Reviewers: EricWF, mclow.lists

Subscribers: christof, jkorous, dexonsmith, libcxx-commits

Differential Revision: https://reviews.llvm.org/D55079

llvm-svn: 348296
libcxx/docs/DesignDocs/AvailabilityMarkup.rst
libcxx/utils/libcxx/test/config.py