[libc-commits] [libc] [libc][stdio][test] fixup rename test (PR #86136)
Nick Desaulniers via libc-commits
libc-commits at lists.llvm.org
Thu Mar 21 08:34:30 PDT 2024
https://github.com/nickdesaulniers created https://github.com/llvm/llvm-project/pull/86136
Link: #84980
Link: #85068
>From daadc72d0d751b4d45b8ae47908dbf523110f3a7 Mon Sep 17 00:00:00 2001
From: Nick Desaulniers <ndesaulniers at google.com>
Date: Thu, 21 Mar 2024 08:33:43 -0700
Subject: [PATCH] [libc][stdio][test] fixup rename test
Link: #84980
Link: #85068
---
libc/test/src/stdio/CMakeLists.txt | 2 +-
libc/test/src/stdio/rename_test.cpp | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/libc/test/src/stdio/CMakeLists.txt b/libc/test/src/stdio/CMakeLists.txt
index a11a232c27e1a7..4c38e8aba7d7f2 100644
--- a/libc/test/src/stdio/CMakeLists.txt
+++ b/libc/test/src/stdio/CMakeLists.txt
@@ -354,7 +354,7 @@ if(${LIBC_TARGET_OS} STREQUAL "linux")
libc.src.unistd.access
libc.src.unistd.close
)
-
+
add_libc_test(
rename_test
SUITE
diff --git a/libc/test/src/stdio/rename_test.cpp b/libc/test/src/stdio/rename_test.cpp
index a9fbe24ded9cf7..3ed39fe8c0eb97 100644
--- a/libc/test/src/stdio/rename_test.cpp
+++ b/libc/test/src/stdio/rename_test.cpp
@@ -6,6 +6,8 @@
//
//===----------------------------------------------------------------------===//
+#include "include/llvm-libc-macros/linux/unistd-macros.h"
+#include "include/llvm-libc-macros/linux/sys-stat-macros.h"
#include "src/errno/libc_errno.h"
#include "src/fcntl/open.h"
#include "src/stdio/rename.h"
More information about the libc-commits
mailing list