[libc-commits] [libc] 4ac891c - [libc] Add the `src/stdlib/_Exit.h` header to `at_quick_exit_test.cpp` and `atexit_test.cpp` (#115351)

via libc-commits libc-commits at lists.llvm.org
Thu Nov 7 11:02:40 PST 2024


Author: Job Henandez Lara
Date: 2024-11-07T11:02:37-08:00
New Revision: 4ac891cdd286b251a445c1e3a77d56f55a29858b

URL: https://github.com/llvm/llvm-project/commit/4ac891cdd286b251a445c1e3a77d56f55a29858b
DIFF: https://github.com/llvm/llvm-project/commit/4ac891cdd286b251a445c1e3a77d56f55a29858b.diff

LOG: [libc] Add  the `src/stdlib/_Exit.h` header to `at_quick_exit_test.cpp` and `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

Added: 
    

Modified: 
    libc/test/src/stdlib/at_quick_exit_test.cpp
    libc/test/src/stdlib/atexit_test.cpp

Removed: 
    


################################################################################
diff  --git a/libc/test/src/stdlib/at_quick_exit_test.cpp b/libc/test/src/stdlib/at_quick_exit_test.cpp
index 1ed5a83a61b8d0..c0aac4d20d92cc 100644
--- a/libc/test/src/stdlib/at_quick_exit_test.cpp
+++ b/libc/test/src/stdlib/at_quick_exit_test.cpp
@@ -8,6 +8,7 @@
 
 #include "src/__support/CPP/array.h"
 #include "src/__support/CPP/utility.h"
+#include "src/stdlib/_Exit.h"
 #include "src/stdlib/at_quick_exit.h"
 #include "src/stdlib/quick_exit.h"
 #include "test/UnitTest/Test.h"

diff  --git a/libc/test/src/stdlib/atexit_test.cpp b/libc/test/src/stdlib/atexit_test.cpp
index 24f8b0451f3636..c25202ff54f696 100644
--- a/libc/test/src/stdlib/atexit_test.cpp
+++ b/libc/test/src/stdlib/atexit_test.cpp
@@ -8,6 +8,7 @@
 
 #include "src/__support/CPP/array.h"
 #include "src/__support/CPP/utility.h"
+#include "src/stdlib/_Exit.h"
 #include "src/stdlib/atexit.h"
 #include "src/stdlib/exit.h"
 #include "test/UnitTest/Test.h"


        


More information about the libc-commits mailing list