summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2017-03-03 20:28:49 +0100
committerTianjie Xu <xunchang@google.com>2017-03-03 20:59:28 +0100
commitcace743c4db6e73bc8ff3a0eee1f8f2044054ca7 (patch)
treee90ee15878aa449c6d23fa89e0ceb9c40c6ba1b4
parentMerge "Skip BootloaderMessageTest, UncryptTest for devices without /misc" (diff)
downloadandroid_bootable_recovery-cace743c4db6e73bc8ff3a0eee1f8f2044054ca7.tar
android_bootable_recovery-cace743c4db6e73bc8ff3a0eee1f8f2044054ca7.tar.gz
android_bootable_recovery-cace743c4db6e73bc8ff3a0eee1f8f2044054ca7.tar.bz2
android_bootable_recovery-cace743c4db6e73bc8ff3a0eee1f8f2044054ca7.tar.lz
android_bootable_recovery-cace743c4db6e73bc8ff3a0eee1f8f2044054ca7.tar.xz
android_bootable_recovery-cace743c4db6e73bc8ff3a0eee1f8f2044054ca7.tar.zst
android_bootable_recovery-cace743c4db6e73bc8ff3a0eee1f8f2044054ca7.zip
Diffstat (limited to '')
-rw-r--r--tests/component/bootloader_message_test.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/component/bootloader_message_test.cpp b/tests/component/bootloader_message_test.cpp
index c32519d80..0357accfe 100644
--- a/tests/component/bootloader_message_test.cpp
+++ b/tests/component/bootloader_message_test.cpp
@@ -33,8 +33,10 @@ class BootloaderMessageTest : public ::testing::Test {
virtual void TearDown() override {
// Clear the BCB.
- std::string err;
- ASSERT_TRUE(clear_bootloader_message(&err)) << "Failed to clear BCB: " << err;
+ if (has_misc) {
+ std::string err;
+ ASSERT_TRUE(clear_bootloader_message(&err)) << "Failed to clear BCB: " << err;
+ }
}
bool has_misc;