[llvm-branch-commits] [llvm] release/23.x: [Support][test] Fix OpenDirectoryAsFileForRead test on AIX and z/OS (#216241) (PR #216342)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Aug 14 08:45:42 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-support
Author: llvmbot
<details>
<summary>Changes</summary>
Backport 828d2d7fb65a9cd5946b347ad5173e3bdb21387d
Requested by: @<!-- -->amy-kwan
---
Full diff: https://github.com/llvm/llvm-project/pull/216342.diff
1 Files Affected:
- (modified) llvm/unittests/Support/Path.cpp (+1-1)
``````````diff
diff --git a/llvm/unittests/Support/Path.cpp b/llvm/unittests/Support/Path.cpp
index b63ab426bb080..31599f6152e92 100644
--- a/llvm/unittests/Support/Path.cpp
+++ b/llvm/unittests/Support/Path.cpp
@@ -2040,7 +2040,7 @@ TEST_F(FileSystemTest, SetLastAccessAndModificationTimeDirectory) {
TEST_F(FileSystemTest, OpenDirectoryAsFileForRead) {
std::string Buf(5, '?');
Expected<fs::file_t> FD = fs::openNativeFileForRead(TestDirectory);
-#ifdef _WIN32
+#if defined(_WIN32) || defined(_AIX) || defined(__MVS__)
EXPECT_EQ(errorToErrorCode(FD.takeError()), errc::is_a_directory);
#else
ASSERT_THAT_EXPECTED(FD, Succeeded());
``````````
</details>
https://github.com/llvm/llvm-project/pull/216342
More information about the llvm-branch-commits
mailing list