Skip to content

Commit c9afa6a

Browse files
Fix infinite recursion, disable kvstore test on baremetal
1 parent d3d229e commit c9afa6a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

connectivity/FEATURE_BLE/source/cordio/source/BLEInstanceBaseImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ ble::SecurityManager &BLEInstanceBase::getSecurityManager()
317317

318318
const ble::SecurityManager &BLEInstanceBase::getSecurityManager() const
319319
{
320-
const BLEInstanceBase &self = const_cast<BLEInstanceBase &>(*this);
320+
BLEInstanceBase &self = const_cast<BLEInstanceBase &>(*this);
321321
return const_cast<const ble::SecurityManager &>(self.getSecurityManager());
322322
}
323323
#endif // BLE_FEATURE_SECURITY

storage/kvstore/tests/TESTS/kvstore/static_tests/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
# Copyright (c) 2020 ARM Limited. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4+
if("TFM_DUALCPU" IN_LIST MBED_TARGET_LABELS AND APPLICATION_PROFILE_CONFIG_BAREMETAL)
5+
set(TEST_SKIPPED "KVStore requires the RTOS on this platform")
6+
endif()
7+
48
mbed_greentea_add_test(
59
TEST_NAME
610
mbed-storage-kvstore-static_tests
11+
TEST_SKIPPED
12+
${TEST_SKIPPED}
713
TEST_SOURCES
814
main.cpp
915
TEST_REQUIRED_LIBS

0 commit comments

Comments
 (0)