[llvm] [Support] Report EISDIR when opening a directory (PR #79880)

Hubert Tong via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 15 08:24:01 PDT 2024


================
@@ -1296,6 +1296,39 @@ TEST_F(FileSystemTest, UTF8ToUTF16DirectoryIteration) {
 }
 #endif
 
+TEST_F(FileSystemTest, OpenDirectoryAsFileForRead) {
+  ASSERT_NO_ERROR(fs::create_directory(Twine(TestDirectory)));
----------------
hubert-reinterpretcast wrote:

The code here does not include code to remove this directory. Perhaps it should?

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


More information about the llvm-commits mailing list