aboutsummaryrefslogtreecommitdiff
path: root/libcxxabi/test/test_guard.pass.cpp
AgeCommit message (Collapse)AuthorFilesLines
2022-05-26[libc++abi] Use from-scratch testing configs for libc++abi by defaultLouis Dionne1-10/+9
Like we have been doing for libc++ for a while now, start using from-scratch testing configurations for libc++abi. As a fly-by fix, remove the LIBCXXABI_NO_TIMER macro, which was defined but never used. Differential Revision: https://reviews.llvm.org/D125242
2021-11-17[runtimes][NFC] Remove filenames at the top of the license noticeLouis Dionne1-1/+1
We've stopped doing it in libc++ for a while now because these names would end up rotting as we move things around and copy/paste stuff. This cleans up all the existing files so as to stop the spreading as people copy-paste headers around.
2020-11-27[libc++] Introduce an indirection to create threads in the test suiteLouis Dionne1-3/+5
We create threads using std::thread in various places in the test suite. However, the usual std::thread constructor may not work on all platforms, e.g. on platforms where passing a stack size is required to create a thread. This commit introduces a simple indirection that makes it easier to tweak how threads are created inside the test suite on various platforms. Note that tests that are purposefully calling std::thread's constructor directly (e.g. because that is what they're testing) were not modified.
2020-10-08[runtimes] Use int main(int, char**) consistently in testsLouis Dionne1-1/+3
This is needed when running the tests in Freestanding mode, where main() isn't treated specially. In Freestanding, main() doesn't get mangled as extern "C", so whatever runtime we're using fails to find the entry point. One way to solve this problem is to define a symbol alias from __Z4mainiPPc to _main, however this requires all definitions of main() to have the same mangling. Hence this commit.
2020-06-09[libc++abi] Replace LIBCXXABI_HAS_NO_EXCEPTIONS by TEST_HAS_NO_EXCEPTIONSLouis Dionne1-1/+3
This clarifies the difference between test for exception support in libc++abi tests and support for exceptions built into libc++abi. This also removes the rather confusing similarity between the _LIBCXXABI_NO_EXCEPTIONS and LIBCXXABI_HAS_NO_EXCEPTIONS macros. Finally, TEST_HAS_NO_EXCEPTIONS is also detected automatically based on -fno-exceptions, so it doesn't have to be specified explicitly through Lit's compile_flags.
2019-01-19Update more file headers across all of the LLVM projects in the monorepoChandler Carruth1-4/+3
to reflect the new license. These used slightly different spellings that defeated my regular expressions. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351648
2017-03-30[libc++abi] Delete config.hShoaib Meenai1-1/+0
Summary: It's now completely empty, so we can remove it entirely. Reviewers: mclow.lists, EricWF Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D31502 llvm-svn: 299129
2016-12-24Fix warnings in libc++abi testsEric Fiselier1-9/+11
llvm-svn: 290471
2016-09-21[libcxxabi] cleanup the use of LIBCXXABI_HAS_NO_THREADS macro (NFC)Asiri Rathnayake1-4/+4
Align the naming / use of the macro LIBCXXABI_HAS_NO_THREADS to follow what we have in libcxx. NFC. llvm-svn: 282062
2016-05-31[libcxxabi] Introduce a -fno-exceptions libc++abi libary variantAsiri Rathnayake1-0/+4
Currently there is only support for a -fno-exceptions libc++ build. This is problematic for functions such as std::terminate() which are defined in libc++abi and using any of those functions throws away most of the benefits of using -fno-exceptions (code-size). This patch introduces a -fno-exceptions libc++abi build to address this issue. This new variant of libc++abi cannot be linked against any with-exceptions code as some symbols necessary for handling exceptions are missing in this library. Differential revision: http://reviews.llvm.org/D20677 Reviewers: EricWF, mclow.lists, bcraig llvm-svn: 271267
2015-01-21Rename all of the tests in preparation for merging lit configs with libcxxJonathan Roelofs1-0/+142
http://reviews.llvm.org/D7101 llvm-svn: 226691