diff options
| author | Schrodinger ZHU Yifan <yifanzhu@rochester.edu> | 2025-11-14 13:36:05 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-14 13:36:05 -0500 |
| commit | 5b798df8c48aab6db287aaf3ae45ff32283c4f9c (patch) | |
| tree | 37ca2d47a45ee0dcf04a52f47143778009043821 /libc/test/src/stdlib/_Exit_test.cpp | |
| parent | d06a7dd35e5a1d7b6309930cdf13033a3d08b542 (diff) | |
Revert "[libc][test] split exit tests into two separate tests" (#168102)
Reverts llvm/llvm-project#166355
Diffstat (limited to 'libc/test/src/stdlib/_Exit_test.cpp')
| -rw-r--r-- | libc/test/src/stdlib/_Exit_test.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/test/src/stdlib/_Exit_test.cpp b/libc/test/src/stdlib/_Exit_test.cpp index 57c432828c2f..333277dc01dc 100644 --- a/libc/test/src/stdlib/_Exit_test.cpp +++ b/libc/test/src/stdlib/_Exit_test.cpp @@ -7,9 +7,13 @@ //===----------------------------------------------------------------------===// #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); } |
