[lldb][test] Fix FileActionTest.cpp for Windows (#112657)

Disable part of the test failing on windows. as O_NOCTTY and
O_RDONLY dont have same behavior on windows vs linux.
This commit is contained in:
Muhammad Omair Javaid 2024-10-31 14:34:35 +05:00
parent ba1a09da8d
commit 3bc58fc7f7

View File

@ -34,7 +34,9 @@ TEST(FileActionTest, OpenReadWrite) {
TEST(FileActionTest, OpenReadOnly) {
FileAction Action;
Action.Open(49, FileSpec("/tmp_1"), /*read*/ true, /*write*/ false);
#ifndef _WIN32
EXPECT_TRUE(Action.GetActionArgument() & (O_NOCTTY | O_RDONLY));
#endif
EXPECT_FALSE(Action.GetActionArgument() & O_WRONLY);
}