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
This commit is contained in:
Christopher Ferris 2016-05-20 15:32:47 -07:00
parent c912ed0519
commit 7e53843f7b
1 changed files with 1 additions and 1 deletions

View File

@ -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);