summaryrefslogtreecommitdiffstats
path: root/tests/component
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2017-07-20 01:14:51 +0200
committerandroid-build-merger <android-build-merger@google.com>2017-07-20 01:14:51 +0200
commit3a3019199c64e5bea2e01e8ce8283a2ee36a624c (patch)
tree38c38831f3a8bff345a92e1e8e85bfa57db480b7 /tests/component
parentMerge "Remove the obsolete reference to /file_contexts." (diff)
parentMerge "Fix the android-cloexec-* warnings in bootable/recovery" am: 94a8ea1797 am: 6d8827e0d3 (diff)
downloadandroid_bootable_recovery-3a3019199c64e5bea2e01e8ce8283a2ee36a624c.tar
android_bootable_recovery-3a3019199c64e5bea2e01e8ce8283a2ee36a624c.tar.gz
android_bootable_recovery-3a3019199c64e5bea2e01e8ce8283a2ee36a624c.tar.bz2
android_bootable_recovery-3a3019199c64e5bea2e01e8ce8283a2ee36a624c.tar.lz
android_bootable_recovery-3a3019199c64e5bea2e01e8ce8283a2ee36a624c.tar.xz
android_bootable_recovery-3a3019199c64e5bea2e01e8ce8283a2ee36a624c.tar.zst
android_bootable_recovery-3a3019199c64e5bea2e01e8ce8283a2ee36a624c.zip
Diffstat (limited to 'tests/component')
-rw-r--r--tests/component/updater_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/component/updater_test.cpp b/tests/component/updater_test.cpp
index 357a39ef7..01b86f224 100644
--- a/tests/component/updater_test.cpp
+++ b/tests/component/updater_test.cpp
@@ -485,7 +485,7 @@ TEST_F(UpdaterTest, block_image_update) {
UpdaterInfo updater_info;
updater_info.package_zip = handle;
TemporaryFile temp_pipe;
- updater_info.cmd_pipe = fopen(temp_pipe.path, "wb");
+ updater_info.cmd_pipe = fopen(temp_pipe.path, "wbe");
updater_info.package_zip_addr = map.addr;
updater_info.package_zip_len = map.length;
@@ -561,7 +561,7 @@ TEST_F(UpdaterTest, new_data_short_write) {
UpdaterInfo updater_info;
updater_info.package_zip = handle;
TemporaryFile temp_pipe;
- updater_info.cmd_pipe = fopen(temp_pipe.path, "wb");
+ updater_info.cmd_pipe = fopen(temp_pipe.path, "wbe");
updater_info.package_zip_addr = map.addr;
updater_info.package_zip_len = map.length;