[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:
parent
ba1a09da8d
commit
3bc58fc7f7
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user