summaryrefslogtreecommitdiffstats
path: root/tests/manual
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2016-12-22 03:44:20 +0100
committerTao Bao <tbao@google.com>2016-12-22 03:56:53 +0100
commita3ece96f9f87e7219350498486975c5b8deccd83 (patch)
tree1376b3b6a85ed5db38bdf3df9bc56295d99b658b /tests/manual
parentMerge "Bugfix:updater always retry apply patch failed,when memcpy failed." (diff)
downloadandroid_bootable_recovery-a3ece96f9f87e7219350498486975c5b8deccd83.tar
android_bootable_recovery-a3ece96f9f87e7219350498486975c5b8deccd83.tar.gz
android_bootable_recovery-a3ece96f9f87e7219350498486975c5b8deccd83.tar.bz2
android_bootable_recovery-a3ece96f9f87e7219350498486975c5b8deccd83.tar.lz
android_bootable_recovery-a3ece96f9f87e7219350498486975c5b8deccd83.tar.xz
android_bootable_recovery-a3ece96f9f87e7219350498486975c5b8deccd83.tar.zst
android_bootable_recovery-a3ece96f9f87e7219350498486975c5b8deccd83.zip
Diffstat (limited to 'tests/manual')
-rw-r--r--tests/manual/recovery_test.cpp3
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");
}