From 7e53843f7b4c061920d1742c8e70a50509d83a53 Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Fri, 20 May 2016 15:32:47 -0700 Subject: [PATCH] Change use of /data to /data/local/tmp. The unistd fsync/fdatasync were changed to use /data from /. Unfortunately, this directory is unreadable unless you are root, so change this path to /data/local/tmp. Bug: 28885777 Change-Id: Ia88da7a05c8f1b05fbd45ef2e8c55ba0c3368164 --- tests/unistd_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unistd_test.cpp b/tests/unistd_test.cpp index 8ac6dae3f..ccf4dcca2 100644 --- a/tests/unistd_test.cpp +++ b/tests/unistd_test.cpp @@ -386,7 +386,7 @@ static void TestFsyncFunction(int (*fn)(int)) { close(fd); // The fd can even be a directory. - ASSERT_NE(-1, fd = open("/data", O_RDONLY)); + ASSERT_NE(-1, fd = open("/data/local/tmp", O_RDONLY)); EXPECT_EQ(0, fn(fd)); close(fd); -- 2.11.0