diff options
author | Tianjie Xu | 2017-07-10 17:13:33 -0500 |
---|---|---|
committer | Tianjie Xu | 2017-07-19 14:17:41 -0500 |
commit | de6735e80cc65be50381388640d94f1b1d0f20fa (patch) | |
tree | bdcda7cd5a4e2baa1f45c66f6a1698df47119175 /tests/manual | |
parent | 8155a8ba74bce27626f3ce3f088951298c44776d (diff) | |
download | platform-bootable-recovery-de6735e80cc65be50381388640d94f1b1d0f20fa.tar.gz platform-bootable-recovery-de6735e80cc65be50381388640d94f1b1d0f20fa.tar.xz platform-bootable-recovery-de6735e80cc65be50381388640d94f1b1d0f20fa.zip |
Fix the android-cloexec-* warnings in bootable/recovery
Add the O_CLOEXEC or 'e' accordingly.
Bug: 63510015
Test: recovery tests pass
Change-Id: I7094bcc6af22c9687eb535116b2ca6a59178b303
Diffstat (limited to 'tests/manual')
-rw-r--r-- | tests/manual/recovery_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/manual/recovery_test.cpp b/tests/manual/recovery_test.cpp index d36dd331..92c6ef2d 100644 --- a/tests/manual/recovery_test.cpp +++ b/tests/manual/recovery_test.cpp | |||
@@ -141,7 +141,7 @@ class ResourceTest : public testing::TestWithParam<std::string> { | |||
141 | // under recovery. | 141 | // under recovery. |
142 | void SetUp() override { | 142 | void SetUp() override { |
143 | std::string file_path = GetParam(); | 143 | std::string file_path = GetParam(); |
144 | fp = fopen(file_path.c_str(), "rb"); | 144 | fp = fopen(file_path.c_str(), "rbe"); |
145 | ASSERT_NE(nullptr, fp); | 145 | ASSERT_NE(nullptr, fp); |
146 | 146 | ||
147 | unsigned char header[8]; | 147 | unsigned char header[8]; |