summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2017-03-03 22:56:10 +0100
committerandroid-build-merger <android-build-merger@google.com>2017-03-03 22:56:10 +0100
commitd0080d92c9b87b8a487e8cd0e9adc45d44a6e75a (patch)
tree5848ca7b5d19eb95dc3cbfa2fe6361388aa2d566 /tests
parentMerge "Recovery Test: add SideloadTest to test FUSE support on target" am: 53feebea4f am: 3d605c54e3 (diff)
parentMerge "Fix an error on bootloadermessager test teardown" am: b694ba8aab (diff)
downloadandroid_bootable_recovery-d0080d92c9b87b8a487e8cd0e9adc45d44a6e75a.tar
android_bootable_recovery-d0080d92c9b87b8a487e8cd0e9adc45d44a6e75a.tar.gz
android_bootable_recovery-d0080d92c9b87b8a487e8cd0e9adc45d44a6e75a.tar.bz2
android_bootable_recovery-d0080d92c9b87b8a487e8cd0e9adc45d44a6e75a.tar.lz
android_bootable_recovery-d0080d92c9b87b8a487e8cd0e9adc45d44a6e75a.tar.xz
android_bootable_recovery-d0080d92c9b87b8a487e8cd0e9adc45d44a6e75a.tar.zst
android_bootable_recovery-d0080d92c9b87b8a487e8cd0e9adc45d44a6e75a.zip
Diffstat (limited to 'tests')
-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;