summaryrefslogtreecommitdiff
path: root/tests/unistd_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unistd_test.cpp')
-rw-r--r--tests/unistd_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unistd_test.cpp b/tests/unistd_test.cpp
index 79c16d7eb..75b3edc4c 100644
--- a/tests/unistd_test.cpp
+++ b/tests/unistd_test.cpp
@@ -374,7 +374,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);