[libc-commits] [libc] [libc] Add 'x' and 'e' mode support to fopen() (PR #224207)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Thu Sep 17 09:53:30 PDT 2026


================
@@ -88,6 +89,34 @@ TEST_F(LlvmLibcFreopenTest, ReopenFile) {
   verify_file_content(FILENAME_B, CONTENT_B);
 }
 
+#ifdef LIBC_TARGET_OS_IS_LINUX
+TEST_F(LlvmLibcFreopenTest, CloseOnExec) {
+  FILE *file = LIBC_NAMESPACE::fopen("/dev/null", "w");
----------------
michaelrj-google wrote:

same as above, these should use `libc_make_test_file_path` for their paths.

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


More information about the libc-commits mailing list