[libc-commits] [libc] [libc][stdio][test] fixup rename test (PR #86136)

via libc-commits libc-commits at lists.llvm.org
Thu Mar 21 08:35:06 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Nick Desaulniers (nickdesaulniers)

<details>
<summary>Changes</summary>

Link: #<!-- -->84980
Link: #<!-- -->85068


---
Full diff: https://github.com/llvm/llvm-project/pull/86136.diff


2 Files Affected:

- (modified) libc/test/src/stdio/CMakeLists.txt (+1-1) 
- (modified) libc/test/src/stdio/rename_test.cpp (+2) 


``````````diff
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"

``````````

</details>


https://github.com/llvm/llvm-project/pull/86136


More information about the libc-commits mailing list