summaryrefslogtreecommitdiffstats
path: root/tests/component/verifier_test.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-05-03 01:51:32 +0200
committerandroid-build-merger <android-build-merger@google.com>2017-05-03 01:51:32 +0200
commit586377d1f3f0fa3c03664b702affbbf4ea0c3a9e (patch)
treec8f081f291c35d73cef9cc1c6a775c1e6a52bcb2 /tests/component/verifier_test.cpp
parentMerge "recovery: Change install_package() to take std::string." am: ba365180d3 am: c0c4ae1583 (diff)
parentMerge "Move sysMapFile and sysReleaseMap into MemMapping class." am: fe7eecff4c (diff)
downloadandroid_bootable_recovery-586377d1f3f0fa3c03664b702affbbf4ea0c3a9e.tar
android_bootable_recovery-586377d1f3f0fa3c03664b702affbbf4ea0c3a9e.tar.gz
android_bootable_recovery-586377d1f3f0fa3c03664b702affbbf4ea0c3a9e.tar.bz2
android_bootable_recovery-586377d1f3f0fa3c03664b702affbbf4ea0c3a9e.tar.lz
android_bootable_recovery-586377d1f3f0fa3c03664b702affbbf4ea0c3a9e.tar.xz
android_bootable_recovery-586377d1f3f0fa3c03664b702affbbf4ea0c3a9e.tar.zst
android_bootable_recovery-586377d1f3f0fa3c03664b702affbbf4ea0c3a9e.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 61ceadc9c..e520f5028 100644
--- a/tests/component/verifier_test.cpp
+++ b/tests/component/verifier_test.cpp
@@ -40,7 +40,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";
}