[libcxx-commits] [libcxx] [libc++] Fix filesystem::remove_all bug with read-only nested directory (PR #197104)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Tue May 26 06:26:47 PDT 2026
================
@@ -0,0 +1,41 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// UNSUPPORTED: c++03, c++11, c++14
+// UNSUPPORTED: no-filesystem
+
+// UNSUPPORTED: windows
+// XFAIL: using-built-library-before-llvm-23
+
+// Verify that remove_all reports the correct error (permission_denied)
+// when the parent directory has insufficient permissions.
+
+// <filesystem>
+
+#include <filesystem>
+
+#include "test_macros.h"
+#include "filesystem_test_helper.h"
+namespace fs = std::filesystem;
+using namespace fs;
----------------
philnik777 wrote:
Please avoid `using namespace`.
https://github.com/llvm/llvm-project/pull/197104
More information about the libcxx-commits
mailing list