diff options
author | Tianjie Xu <xunchang@google.com> | 2017-03-03 22:43:13 +0100 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-03-03 22:43:14 +0100 |
commit | b694ba8aab0e60b530beaeb079017ec2cf0ad10a (patch) | |
tree | 759fae02c0d04e051b1187982001becf3104caf2 /tests/component | |
parent | Merge "Recovery Test: add SideloadTest to test FUSE support on target" (diff) | |
parent | Fix an error on bootloadermessager test teardown (diff) | |
download | android_bootable_recovery-b694ba8aab0e60b530beaeb079017ec2cf0ad10a.tar android_bootable_recovery-b694ba8aab0e60b530beaeb079017ec2cf0ad10a.tar.gz android_bootable_recovery-b694ba8aab0e60b530beaeb079017ec2cf0ad10a.tar.bz2 android_bootable_recovery-b694ba8aab0e60b530beaeb079017ec2cf0ad10a.tar.lz android_bootable_recovery-b694ba8aab0e60b530beaeb079017ec2cf0ad10a.tar.xz android_bootable_recovery-b694ba8aab0e60b530beaeb079017ec2cf0ad10a.tar.zst android_bootable_recovery-b694ba8aab0e60b530beaeb079017ec2cf0ad10a.zip |
Diffstat (limited to 'tests/component')
-rw-r--r-- | tests/component/bootloader_message_test.cpp | 6 |
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; |