diff --git a/tests/unistd_test.cpp b/tests/unistd_test.cpp index 841641f1d..fae28a6eb 100644 --- a/tests/unistd_test.cpp +++ b/tests/unistd_test.cpp @@ -397,7 +397,7 @@ static void TestFsyncFunction(int (*fn)(int)) { close(fd); // The fd can even be a directory. - ASSERT_NE(-1, fd = open("/", O_RDONLY)); + ASSERT_NE(-1, fd = open("/data", O_RDONLY)); EXPECT_EQ(0, fn(fd)); close(fd);