diff options
author | Tao Bao <tbao@google.com> | 2016-12-22 18:13:44 +0100 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-12-22 18:13:44 +0100 |
commit | 3b9645288e415141b3be09b530b0142a4c08dc8a (patch) | |
tree | 10948a3e00fc65d5859e48a0f0a01e05a12c5fe4 /tests/manual/recovery_test.cpp | |
parent | Merge "tests: Add testcase for ZipUtil." (diff) | |
parent | tests: Replace the O_RDONLY in access(2). (diff) | |
download | android_bootable_recovery-3b9645288e415141b3be09b530b0142a4c08dc8a.tar android_bootable_recovery-3b9645288e415141b3be09b530b0142a4c08dc8a.tar.gz android_bootable_recovery-3b9645288e415141b3be09b530b0142a4c08dc8a.tar.bz2 android_bootable_recovery-3b9645288e415141b3be09b530b0142a4c08dc8a.tar.lz android_bootable_recovery-3b9645288e415141b3be09b530b0142a4c08dc8a.tar.xz android_bootable_recovery-3b9645288e415141b3be09b530b0142a4c08dc8a.tar.zst android_bootable_recovery-3b9645288e415141b3be09b530b0142a4c08dc8a.zip |
Diffstat (limited to 'tests/manual/recovery_test.cpp')
-rw-r--r-- | tests/manual/recovery_test.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/manual/recovery_test.cpp b/tests/manual/recovery_test.cpp index e83849546..e73cb1509 100644 --- a/tests/manual/recovery_test.cpp +++ b/tests/manual/recovery_test.cpp @@ -14,7 +14,6 @@ * limitations under the License. */ -#include <fcntl.h> #include <string.h> #include <sys/types.h> #include <unistd.h> @@ -79,7 +78,7 @@ TEST(recovery, persist) { std::string buf; EXPECT_TRUE(android::base::ReadFileToString(myFilename, &buf)); EXPECT_EQ(myContent, buf); - if (access(myFilename.c_str(), O_RDONLY) == 0) { + if (access(myFilename.c_str(), F_OK) == 0) { fprintf(stderr, "Removing persistent test data, " "check if reconstructed on reboot\n"); } |