diff options
| author | Shreeyash Pandey <shreeyash335@gmail.com> | 2025-11-14 23:57:32 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-14 13:27:32 -0500 |
| commit | e7db040b796df5e7bda5226492038a3af34803ef (patch) | |
| tree | 9a288aefbc7d093e606533ce3c0c71dad714c716 /libc/test/src/stdlib/_Exit_test.cpp | |
| parent | ac6daa8181894e34b8cf8e5c3e065f64035fcd36 (diff) | |
[libc][test] split exit tests into two separate tests (#166355)
_Exit(3) is a fairly simple syscall wrapper whereas exit(3) calls
atexit-registered functions + whole lot of stuff that require support
for sync primitives.
Splitting the tests allows testing the former easily (especially for new
port projects)
---------
Signed-off-by: Shreeyash Pandey <shreeyash335@gmail.com>
Diffstat (limited to 'libc/test/src/stdlib/_Exit_test.cpp')
| -rw-r--r-- | libc/test/src/stdlib/_Exit_test.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libc/test/src/stdlib/_Exit_test.cpp b/libc/test/src/stdlib/_Exit_test.cpp index 333277dc01dc..57c432828c2f 100644 --- a/libc/test/src/stdlib/_Exit_test.cpp +++ b/libc/test/src/stdlib/_Exit_test.cpp @@ -7,13 +7,9 @@ //===----------------------------------------------------------------------===// #include "src/stdlib/_Exit.h" -#include "src/stdlib/exit.h" #include "test/UnitTest/Test.h" TEST(LlvmLibcStdlib, _Exit) { EXPECT_EXITS([] { LIBC_NAMESPACE::_Exit(1); }, 1); EXPECT_EXITS([] { LIBC_NAMESPACE::_Exit(65); }, 65); - - EXPECT_EXITS([] { LIBC_NAMESPACE::exit(1); }, 1); - EXPECT_EXITS([] { LIBC_NAMESPACE::exit(65); }, 65); } |
