diff options
author | Tao Bao <tbao@google.com> | 2018-07-10 08:19:19 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-07-10 08:19:19 +0200 |
commit | e02cbaaa629444772cdf92e35f1b2867084d30f9 (patch) | |
tree | 9ee75d9e178f99e7eb34a7b47e98e06f6d6e79ab /tests/component/updater_test.cpp | |
parent | Merge "applypatch: Fix a potential nullptr dereferencing." (diff) | |
parent | applypatch: Restrict applypatch_check to eMMC targets. (diff) | |
download | android_bootable_recovery-e02cbaaa629444772cdf92e35f1b2867084d30f9.tar android_bootable_recovery-e02cbaaa629444772cdf92e35f1b2867084d30f9.tar.gz android_bootable_recovery-e02cbaaa629444772cdf92e35f1b2867084d30f9.tar.bz2 android_bootable_recovery-e02cbaaa629444772cdf92e35f1b2867084d30f9.tar.lz android_bootable_recovery-e02cbaaa629444772cdf92e35f1b2867084d30f9.tar.xz android_bootable_recovery-e02cbaaa629444772cdf92e35f1b2867084d30f9.tar.zst android_bootable_recovery-e02cbaaa629444772cdf92e35f1b2867084d30f9.zip |
Diffstat (limited to 'tests/component/updater_test.cpp')
-rw-r--r-- | tests/component/updater_test.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/component/updater_test.cpp b/tests/component/updater_test.cpp index 0b6b96f7c..f50e861b0 100644 --- a/tests/component/updater_test.cpp +++ b/tests/component/updater_test.cpp @@ -250,8 +250,10 @@ TEST_F(UpdaterTest, apply_patch_check) { expect("t", cmd.c_str(), kNoCause); // Multiple arguments. + // As long as it successfully loads the partition specified in filename, it won't check against + // any given SHAs. cmd = "apply_patch_check(\"" + filename + "\", \"wrong_sha1\", \"wrong_sha2\")"; - expect("", cmd.c_str(), kNoCause); + expect("t", cmd.c_str(), kNoCause); cmd = "apply_patch_check(\"" + filename + "\", \"wrong_sha1\", \"" + src_hash + "\", \"wrong_sha2\")"; |