Change hard-coded directory.
The tests are using /data/data which is not accessible to a non-root
user. Change this to /data/local/tmp which is accessible to all users.
Bug: 8291716
Change-Id: I66476bbbaf5d1dc0c103863abf9219405f06a85b
diff --git a/tests/statvfs_test.cpp b/tests/statvfs_test.cpp
index 8afc6fd..31ce66a 100644
--- a/tests/statvfs_test.cpp
+++ b/tests/statvfs_test.cpp
@@ -35,7 +35,7 @@
#endif
#if __BIONIC__
- ASSERT_EQ(0, statvfs("/data/data", &sb));
+ ASSERT_EQ(0, statvfs("/data/local/tmp", &sb));
ASSERT_NE(0U, sb.f_bfree);
ASSERT_NE(0U, sb.f_ffree);
ASSERT_NE(0U, sb.f_fsid);
@@ -59,7 +59,7 @@
#endif
#if __BIONIC__
- fd = open("/data/data", O_RDONLY);
+ fd = open("/data/local/tmp", O_RDONLY);
ASSERT_EQ(0, fstatvfs(fd, &sb));
close(fd);
ASSERT_NE(0U, sb.f_bfree);