summaryrefslogtreecommitdiff
path: root/libc/test/src/stdlib/_Exit_test.cpp
diff options
context:
space:
mode:
authorPetr Hosek <phosek@google.com>2023-07-07 21:04:43 +0000
committerPetr Hosek <phosek@google.com>2023-07-08 05:15:44 +0000
commitfb149e4beb04d0e2661c84189635d103263a8fd4 (patch)
tree3e7bd24819fd8348159681e323b6518d85081989 /libc/test/src/stdlib/_Exit_test.cpp
parent661d91a0fd4ad80ecc49ebb9e0fff01b4de2ce1c (diff)
[libc] Use the new style includes for tests
This is a follow up to D154529 covering tests. Differential Revision: https://reviews.llvm.org/D154746
Diffstat (limited to 'libc/test/src/stdlib/_Exit_test.cpp')
-rw-r--r--libc/test/src/stdlib/_Exit_test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/test/src/stdlib/_Exit_test.cpp b/libc/test/src/stdlib/_Exit_test.cpp
index e4a55bc29b35..af5cd23743f6 100644
--- a/libc/test/src/stdlib/_Exit_test.cpp
+++ b/libc/test/src/stdlib/_Exit_test.cpp
@@ -6,11 +6,12 @@
//
//===----------------------------------------------------------------------===//
-#include "include/stdlib.h"
#include "src/stdlib/_Exit.h"
#include "src/stdlib/exit.h"
#include "test/UnitTest/Test.h"
+#include <stdlib.h>
+
TEST(LlvmLibcStdlib, _Exit) {
EXPECT_EXITS([] { __llvm_libc::_Exit(1); }, 1);
EXPECT_EXITS([] { __llvm_libc::_Exit(65); }, 65);