summaryrefslogtreecommitdiffstats
path: root/tests/component/verifier_test.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-05-03 01:49:33 +0200
committerandroid-build-merger <android-build-merger@google.com>2017-05-03 01:49:33 +0200
commitb3eeb817ab2a5dd76cbe12053b37e853a3fce682 (patch)
tree0def611534805248315a96999f402fb6d6d241b9 /tests/component/verifier_test.cpp
parentMerge "recovery: Change install_package() to take std::string." am: ba365180d3 (diff)
parentMerge "Move sysMapFile and sysReleaseMap into MemMapping class." (diff)
downloadandroid_bootable_recovery-b3eeb817ab2a5dd76cbe12053b37e853a3fce682.tar
android_bootable_recovery-b3eeb817ab2a5dd76cbe12053b37e853a3fce682.tar.gz
android_bootable_recovery-b3eeb817ab2a5dd76cbe12053b37e853a3fce682.tar.bz2
android_bootable_recovery-b3eeb817ab2a5dd76cbe12053b37e853a3fce682.tar.lz
android_bootable_recovery-b3eeb817ab2a5dd76cbe12053b37e853a3fce682.tar.xz
android_bootable_recovery-b3eeb817ab2a5dd76cbe12053b37e853a3fce682.tar.zst
android_bootable_recovery-b3eeb817ab2a5dd76cbe12053b37e853a3fce682.zip
Diffstat (limited to 'tests/component/verifier_test.cpp')
-rw-r--r--tests/component/verifier_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/component/verifier_test.cpp b/tests/component/verifier_test.cpp
index 2cfb6d301..5338f05c6 100644
--- a/tests/component/verifier_test.cpp
+++ b/tests/component/verifier_test.cpp
@@ -38,7 +38,7 @@ class VerifierTest : public testing::TestWithParam<std::vector<std::string>> {
void SetUp() override {
std::vector<std::string> args = GetParam();
std::string package = from_testdata_base(args[0]);
- if (sysMapFile(package.c_str(), &memmap) != 0) {
+ if (!memmap.MapFile(package)) {
FAIL() << "Failed to mmap " << package << ": " << strerror(errno) << "\n";
}