diff options
| author | Christopher Ferris <cferris@google.com> | 2013-08-27 17:21:37 -0700 |
|---|---|---|
| committer | Christopher Ferris <cferris@google.com> | 2013-09-23 12:12:58 -0700 |
| commit | 7bfef355b1590cb8ac68d8caa97eaf0018191db8 (patch) | |
| tree | 5a63ca2bc185644dc981029fa50cc8d279a9c368 /tests | |
| parent | 6d1f85dcdcf32117332b48563357d311a2886c30 (diff) | |
| download | bionic-7bfef355b1590cb8ac68d8caa97eaf0018191db8.zip bionic-7bfef355b1590cb8ac68d8caa97eaf0018191db8.tar.gz bionic-7bfef355b1590cb8ac68d8caa97eaf0018191db8.tar.bz2 | |
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
(cherry picked from commit 5227bb363dfdd0a4570cfa3d0735744daf7d83c2)
Change-Id: I83bf70aa8edd21b00321363d7ddcb65a5f048ba5
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/statvfs_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ TEST(statvfs, statvfs) { #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 @@ TEST(statvfs, fstatvfs) { #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); |
