summaryrefslogtreecommitdiff
path: root/libc/test/src/stdlib/atexit_test.cpp
AgeCommit message (Collapse)Author
2024-11-07[libc] Add the `src/stdlib/_Exit.h` header to `at_quick_exit_test.cpp` and ↵Job Henandez Lara
`atexit_test.cpp` (#115351) Hello, I merged this https://github.com/llvm/llvm-project/pull/114904 a few mins ago and the tests failed because i did not add the header `src/stdlib/_Exit.h` in `at_quick_exit_test.cpp` and `atexit_test.cpp`. I ran both builds/tests and everything was good. thanks
2024-11-07[libc] Remove _Exit proxy func header and use LIBC_NAMESPACE::_Exit in tests ↵Job Henandez Lara
(#114904) This improves/fixes this pr https://github.com/llvm/llvm-project/pull/114718. In this PR we removed the _Exit proxy func because it was not needed. Instead we used `LIBC_NAMESPACE::_Exit`
2024-11-03[libc] Add proxy headers to handle memory allocation associated with the ↵Job Henandez Lara
header `#include <stdlib.h> (#114690) This finishes the work from https://github.com/llvm/llvm-project/pull/114453 by adding proxy headers for `malloc`, `realloc`, `free` and `aligned_alloc`.
2023-09-26[libc] Mass replace enclosing namespace (#67032)Guillaume Chatelet
This is step 4 of https://discourse.llvm.org/t/rfc-customizable-namespace-to-allow-testing-the-libc-when-the-system-libc-is-also-llvms-libc/73079
2023-02-07[libc][NFC] Move UnitTest and IntegrationTest to the 'test' directory.Siva Chandra Reddy
This part of the effort to make all test related pieces into the `test` directory. This helps is excluding test related pieces in a straight forward manner if LLVM_INCLUDE_TESTS is OFF. Future patches will also move the MPFR wrapper and testutils into the 'test' directory.
2022-09-02[libc][NFC] clang-formatAlex Brachet
2022-08-01[libc][NFC] Use STL case for utilityGuillaume Chatelet
Migrating all private STL code to the standard STL case but keeping it under the CPP namespace to avoid confusion. Differential Revision: https://reviews.llvm.org/D130771
2022-08-01Reland [libc][NFC] Use STL case for arrayGuillaume Chatelet
This is a reland of https://reviews.llvm.org/D130773
2022-08-01Revert "[libc][NFC] Use STL case for array"Guillaume Chatelet
This reverts commit 7add0e5fdc5c7cb6f59f60cd436bf161cf9f9eb7.
2022-08-01[libc][NFC] Use STL case for arrayGuillaume Chatelet
Migrating all private STL code to the standard STL case but keeping it under the CPP namespace to avoid confusion. Differential Revision: https://reviews.llvm.org/D130773
2022-03-15[libc] Fix exit not calling new handlers registered from a call to atexit in ↵Alex Brachet
atexit handler
2022-02-17[libc] Add exit and atexitAlex Brachet
Often atexit is implemented using __cxa_atexit. I have not implemented __cxa_atexit here because it potentially requires more discussion. It is unique for llvm-libc (I think) that it is an exported symbol that wouldn’t be defined in any spec file because it doesn’t have a header. Implementing it will be trivial given what is here already, but I figured it would be more contentious so it can be implemented later. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D119512