Skip to content

Commit 36701f0

Browse files
omjavaidNoumanAmir657
authored andcommitted
[lldb][test] Fix FileActionTest.cpp for Windows (llvm#112657)
Disable part of the test failing on windows. as O_NOCTTY and O_RDONLY dont have same behavior on windows vs linux.
1 parent 0f8b40b commit 36701f0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lldb/unittests/Host/FileActionTest.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ TEST(FileActionTest, OpenReadWrite) {
3434
TEST(FileActionTest, OpenReadOnly) {
3535
FileAction Action;
3636
Action.Open(49, FileSpec("/tmp_1"), /*read*/ true, /*write*/ false);
37+
#ifndef _WIN32
3738
EXPECT_TRUE(Action.GetActionArgument() & (O_NOCTTY | O_RDONLY));
39+
#endif
3840
EXPECT_FALSE(Action.GetActionArgument() & O_WRONLY);
3941
}
4042

0 commit comments

Comments
 (0)