Skip to content

Commit a8f0c33

Browse files
author
Cruz Monrreal
authored
Merge pull request #9370 from ARMmbed/release-candidate
Release candidate for mbed-os-5.11.2
2 parents c966348 + 1f96a7c commit a8f0c33

File tree

745 files changed

+415879
-3886
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

745 files changed

+415879
-3886
lines changed

.travis.yml

Lines changed: 21 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ before_install:
4646
# Setup ppa to make sure arm-none-eabi-gcc is correct version
4747
- sudo add-apt-repository -y ppa:team-gcc-arm-embedded/ppa
4848
- sudo add-apt-repository -y ppa:deadsnakes/ppa
49+
# workaround for https://travis-ci.community/t/then-sudo-apt-get-update-failed-public-key-is-not-available-no-pubkey-6b05f25d762e3157-in-ubuntu-xenial/1728
50+
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 762E3157
4951
# Loop until update succeeds (timeouts can occur)
5052
- travis_retry $(! sudo apt-get update 2>&1 |grep Failed)
5153

@@ -105,7 +107,7 @@ matrix:
105107
# Install dependencies
106108
- sudo apt-get install gcc-arm-embedded
107109
- pip install -r requirements.txt
108-
- pip install pytest pylint hypothesis mock coverage coveralls
110+
- pip install pytest pylint hypothesis==3.88.3 mock coverage coveralls
109111
# Print versions we use
110112

111113
- arm-none-eabi-gcc --version
@@ -134,43 +136,25 @@ matrix:
134136
- env:
135137
- NAME=astyle
136138
install:
137-
- curl -L0 https://mbed-os.s3-eu-west-1.amazonaws.com/builds/deps/astyle_3.1_linux.tar.gz --output astyle.tar.gz;
138-
mkdir -p BUILD && tar xf astyle.tar.gz -C BUILD;
139-
pushd BUILD/astyle/build/gcc;
140-
make;
141-
export PATH=$PWD/bin:$PATH;
142-
popd;
143-
- astyle --version
139+
- >-
140+
curl -L0 https://mbed-os.s3-eu-west-1.amazonaws.com/builds/deps/astyle_3.1_linux.tar.gz --output astyle.tar.gz;
141+
mkdir -p BUILD && tar xf astyle.tar.gz -C BUILD;
142+
cd BUILD/astyle/build/gcc;
143+
make;
144+
export PATH=$PWD/bin:$PATH;
145+
cd -
146+
- astyle --version
147+
# Fetch remaining information needed for branch comparison
148+
- git fetch --all --unshallow --tags
149+
- git fetch origin "${TRAVIS_BRANCH}"
144150
script:
145-
# only changed files this time
146-
git diff --name-only --diff-filter=d $TRAVIS_BRANCH | grep '.*\.\(h\|c\|hpp\|cpp\)$' | fgrep -v -f .astyleignore | xargs -n 100 -I {} bash -c "astyle -n --options=.astylerc \"{}\"" > astyle-files-changed.out;
147-
if [ $(cat astyle-files-changed.out | grep Formatted | wc -l) -ne 0 ]; then
148-
git --no-pager diff;
149-
echo "";
150-
echo "AStyle check failed, please fix style issues as shown above";
151-
(exit 1);
152-
else
153-
echo "Coding style check OK";
154-
fi
155-
after_success:
156-
# run astyle for all files on the branch
157-
- git checkout -- .
158-
- find -regex '.*\.\(h\|c\|hpp\|cpp\)$' -type f | fgrep -v -f .astyleignore | xargs -n 100 -I {} bash -c "astyle -n --options=.astylerc \"{}\"" > astyle-branch.out;
159-
# update status if we succeeded, compare with master if possible
160-
- |
161-
CURR=$(cat astyle-branch.out | grep Formatted | wc -l)
162-
PREV=$(curl -u "$MBED_BOT" https://api.github.com/repos/$TRAVIS_REPO_SLUG/status/master \
163-
| jq -re "select(.sha != \"$TRAVIS_COMMIT\")
164-
| .statuses[] | select(.context == \"travis-ci/$NAME\").description
165-
| capture(\", (?<files>[0-9]+) files\").files" \
166-
|| echo 0)
151+
- >-
152+
git diff --name-only --diff-filter=d FETCH_HEAD..HEAD \
153+
| ( grep '.\(c\|cpp\|h\|hpp\)$' || true ) \
154+
| ( fgrep -v -f .astyleignore || true ) \
155+
| while read file; do astyle -n --options=.astylerc "${file}"; done
156+
- git diff --exit-code --diff-filter=d --color
167157

168-
STATUSM="Passed, ${CURR} files"
169-
if [ "$PREV" -ne 0 ]
170-
then
171-
STATUSM="$STATUSM ($(python -c "print '%+d' % ($CURR-$PREV)") files)"
172-
fi
173-
- bash -c "$STATUS" success "$STATUSM"
174158
- env:
175159
- NAME=events
176160
- EVENTS=events
@@ -294,6 +278,7 @@ matrix:
294278
- echo 'Checking that there is no GPL licence text in code'
295279
- ! git grep -q --ignore-case "gnu general public";
296280
- ! git grep -q --ignore-case "gnu library general public";
281+
297282
- env:
298283
- NAME=psa-autogen
299284
script:

TESTS/host_tests/rtc_calc_auto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def _verify_timestamp(self, key, value, timestamp):
117117
self.send_kv("passed", str(response))
118118
else:
119119
self.send_kv("failed", 0)
120-
print "expected = %d, result = %d" % (expected_timestamp , actual_timestamp)
120+
print("expected = %d, result = %d" % (expected_timestamp , actual_timestamp))
121121

122122
# calculate next date
123123
if (self.first):

TESTS/mbed_hal/qspi/main.cpp

Lines changed: 161 additions & 176 deletions
Large diffs are not rendered by default.

TESTS/mbed_hal/qspi/qspi_test.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ template < qspi_bus_width_t write_inst_width,
7777
unsigned int write_cmd,
7878
qspi_address_size_t write_addr_size,
7979
qspi_alt_size_t write_alt_size,
80-
int write_frequency,
8180
uint32_t write_count,
8281
qspi_bus_width_t read_inst_width,
8382
qspi_bus_width_t read_addr_width,
@@ -87,7 +86,7 @@ template < qspi_bus_width_t write_inst_width,
8786
int read_dummy_cycles,
8887
qspi_address_size_t read_addr_size,
8988
qspi_alt_size_t read_alt_size,
90-
int read_frequency,
89+
int frequency,
9190
uint32_t read_count,
9291
uint32_t test_count,
9392
uint32_t data_size,

TESTS/mbed_hal/spm/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ __attribute__((naked)) void call_mem(uint32_t addr)
8484
// since exception will be generated for invalid memory access.
8585
// Other instructions are for calling do_nothing function according to AAPCS.
8686
__ASM(
87-
"LDR r1, [r0]\n"
87+
"LDR r3, [r0]\n"
8888
"BX lr\n"
8989
);
9090
}
@@ -138,10 +138,10 @@ utest::v1::status_t fault_override_teardown(const Case *const source, const size
138138
}
139139

140140
Case cases[] = {
141-
Case("SPM - Access secure RAM", fault_override_setup, secure_ram_fault_test, fault_override_teardown),
142-
Case("SPM - Access secure Flash", fault_override_setup, secure_flash_fault_test, fault_override_teardown),
143141
Case("SPM - Access non-secure RAM", fault_override_setup, non_secure_ram_fault_test, fault_override_teardown),
144142
Case("SPM - Access non-secure Flash", fault_override_setup, non_secure_flash_fault_test, fault_override_teardown),
143+
Case("SPM - Access secure RAM", fault_override_setup, secure_ram_fault_test, fault_override_teardown),
144+
Case("SPM - Access secure Flash", fault_override_setup, secure_flash_fault_test, fault_override_teardown)
145145
};
146146

147147
utest::v1::status_t greentea_test_setup(const size_t number_of_cases)

TESTS/netsocket/tcp/tcpsocket_bind_address.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@ void TCPSOCKET_BIND_ADDRESS()
3939
}
4040
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
4141
SocketAddress sockAddr = SocketAddress(get_interface()->get_ip_address(), 80);
42-
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->bind(sockAddr));
42+
nsapi_error_t bind_result = sock->bind(sockAddr);
43+
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
44+
TEST_IGNORE_MESSAGE("bind() not supported");
45+
} else {
46+
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, bind_result);
47+
}
4348

4449
delete sock;
4550

TESTS/netsocket/tcp/tcpsocket_bind_address_invalid.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ void TCPSOCKET_BIND_ADDRESS_INVALID()
3838
TEST_FAIL();
3939
}
4040
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
41-
TEST_ASSERT_EQUAL(NSAPI_ERROR_PARAMETER, sock->bind("190.2.3.4", 1024));
41+
nsapi_error_t bind_result = sock->bind("190.2.3.4", 1024);
42+
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
43+
TEST_IGNORE_MESSAGE("bind() not supported");
44+
} else {
45+
TEST_ASSERT_EQUAL(NSAPI_ERROR_PARAMETER, bind_result);
46+
}
4247

4348
delete sock;
4449

TESTS/netsocket/tcp/tcpsocket_bind_address_null.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ void TCPSOCKET_BIND_ADDRESS_NULL()
3838
TEST_FAIL();
3939
}
4040
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
41-
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->bind(NULL, 1024));
41+
nsapi_error_t bind_result = sock->bind(NULL, 1024);
42+
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
43+
TEST_IGNORE_MESSAGE("bind() not supported");
44+
} else {
45+
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, bind_result);
46+
}
4247

4348
delete sock;
4449

TESTS/netsocket/tcp/tcpsocket_bind_address_port.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ void TCPSOCKET_BIND_ADDRESS_PORT()
3838
TEST_FAIL();
3939
}
4040
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
41-
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->bind(get_interface()->get_ip_address(), 80));
41+
nsapi_error_t bind_result = sock->bind(get_interface()->get_ip_address(), 80);
42+
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
43+
TEST_IGNORE_MESSAGE("bind() not supported");
44+
} else {
45+
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, bind_result);
46+
}
4247

4348
delete sock;
4449

TESTS/netsocket/tcp/tcpsocket_bind_port.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ void TCPSOCKET_BIND_PORT()
3838
TEST_FAIL();
3939
}
4040
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
41-
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->bind(1024));
41+
nsapi_error_t bind_result = sock->bind(1024);
42+
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
43+
TEST_IGNORE_MESSAGE("bind() not supported");
44+
} else {
45+
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, bind_result);
46+
}
4247

4348
delete sock;
4449

TESTS/netsocket/tcp/tcpsocket_bind_port_fail.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,14 @@ void TCPSOCKET_BIND_PORT_FAIL()
3838
TEST_FAIL();
3939
}
4040
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
41-
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->bind(1024));
41+
nsapi_error_t bind_result = sock->bind(1024);
42+
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
43+
TEST_IGNORE_MESSAGE("bind() not supported");
44+
delete sock;
45+
return;
46+
} else {
47+
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, bind_result);
48+
}
4249

4350
TCPSocket *sock2 = new TCPSocket;
4451
if (!sock2) {

TESTS/netsocket/tcp/tcpsocket_bind_unopened.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ void TCPSOCKET_BIND_UNOPENED()
3737
if (!sock) {
3838
TEST_FAIL();
3939
}
40-
TEST_ASSERT_EQUAL(NSAPI_ERROR_NO_SOCKET, sock->bind(1024));
40+
nsapi_error_t bind_result = sock->bind(1024);
41+
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
42+
TEST_IGNORE_MESSAGE("bind() not supported");
43+
} else {
44+
TEST_ASSERT_EQUAL(NSAPI_ERROR_NO_SOCKET, bind_result);
45+
}
4146

4247
delete sock;
4348

TESTS/netsocket/tcp/tcpsocket_bind_wrong_type.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,12 @@ void TCPSOCKET_BIND_WRONG_TYPE()
4040
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
4141
char addr_bytes[16] = {0xfe, 0x80, 0xff, 0x1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
4242
SocketAddress sockAddr = SocketAddress(addr_bytes, NSAPI_IPv4, 80);
43-
TEST_ASSERT_EQUAL(NSAPI_ERROR_PARAMETER, sock->bind(sockAddr));
43+
nsapi_error_t bind_result = sock->bind(sockAddr);
44+
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
45+
TEST_IGNORE_MESSAGE("bind() not supported");
46+
} else {
47+
TEST_ASSERT_EQUAL(NSAPI_ERROR_PARAMETER, bind_result);
48+
}
4449

4550
delete sock;
4651

TESTS/netsocket/udp/udpsocket_bind_address.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@ void UDPSOCKET_BIND_ADDRESS()
3939
}
4040
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
4141
SocketAddress sockAddr = SocketAddress(get_interface()->get_ip_address(), 80);
42-
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->bind(sockAddr));
42+
nsapi_error_t bind_result = sock->bind(sockAddr);
43+
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
44+
TEST_IGNORE_MESSAGE("bind() not supported");
45+
} else {
46+
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, bind_result);
47+
}
4348

4449
delete sock;
4550

TESTS/netsocket/udp/udpsocket_bind_address_invalid.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ void UDPSOCKET_BIND_ADDRESS_INVALID()
3838
TEST_FAIL();
3939
}
4040
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
41-
TEST_ASSERT_EQUAL(NSAPI_ERROR_PARAMETER, sock->bind("190.2.3.4", 1024));
41+
nsapi_error_t bind_result = sock->bind("190.2.3.4", 1024);
42+
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
43+
TEST_IGNORE_MESSAGE("bind() not supported");
44+
} else {
45+
TEST_ASSERT_EQUAL(NSAPI_ERROR_PARAMETER, bind_result);
46+
}
4247

4348
delete sock;
4449

TESTS/netsocket/udp/udpsocket_bind_address_null.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ void UDPSOCKET_BIND_ADDRESS_NULL()
3838
TEST_FAIL();
3939
}
4040
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
41-
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->bind(NULL, 1024));
41+
nsapi_error_t bind_result = sock->bind(NULL, 1024);
42+
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
43+
TEST_IGNORE_MESSAGE("bind() not supported");
44+
} else {
45+
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, bind_result);
46+
}
4247

4348
delete sock;
4449

TESTS/netsocket/udp/udpsocket_bind_address_port.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ void UDPSOCKET_BIND_ADDRESS_PORT()
3838
TEST_FAIL();
3939
}
4040
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
41-
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->bind(get_interface()->get_ip_address(), 80));
41+
nsapi_error_t bind_result = sock->bind(get_interface()->get_ip_address(), 80);
42+
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
43+
TEST_IGNORE_MESSAGE("bind() not supported");
44+
} else {
45+
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, bind_result);
46+
}
4247

4348
delete sock;
4449

TESTS/netsocket/udp/udpsocket_bind_port.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ void UDPSOCKET_BIND_PORT()
3838
TEST_FAIL();
3939
}
4040
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
41-
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->bind(1024));
41+
nsapi_error_t bind_result = sock->bind(1024);
42+
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
43+
TEST_IGNORE_MESSAGE("bind() not supported");
44+
} else {
45+
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, bind_result);
46+
}
4247

4348
delete sock;
4449

TESTS/netsocket/udp/udpsocket_bind_port_fail.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,14 @@ void UDPSOCKET_BIND_PORT_FAIL()
3838
TEST_FAIL();
3939
}
4040
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
41-
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->bind(1024));
41+
nsapi_error_t bind_result = sock->bind(1024);
42+
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
43+
TEST_IGNORE_MESSAGE("bind() not supported");
44+
delete sock;
45+
return;
46+
} else {
47+
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, bind_result);
48+
}
4249

4350
UDPSocket *sock2 = new UDPSocket;
4451
if (!sock2) {

TESTS/netsocket/udp/udpsocket_bind_unopened.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ void UDPSOCKET_BIND_UNOPENED()
3737
if (!sock) {
3838
TEST_FAIL();
3939
}
40-
TEST_ASSERT_EQUAL(NSAPI_ERROR_NO_SOCKET, sock->bind(1024));
40+
nsapi_error_t bind_result = sock->bind(1024);
41+
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
42+
TEST_IGNORE_MESSAGE("bind() not supported");
43+
} else {
44+
TEST_ASSERT_EQUAL(NSAPI_ERROR_NO_SOCKET, bind_result);
45+
}
4146

4247
delete sock;
4348

TESTS/netsocket/udp/udpsocket_bind_wrong_type.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,12 @@ void UDPSOCKET_BIND_WRONG_TYPE()
4040
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
4141
char addr_bytes[16] = {0xfe, 0x80, 0xff, 0x1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
4242
SocketAddress sockAddr = SocketAddress(addr_bytes, NSAPI_IPv4, 80);
43-
TEST_ASSERT_EQUAL(NSAPI_ERROR_PARAMETER, sock->bind(sockAddr));
43+
nsapi_error_t bind_result = sock->bind(sockAddr);
44+
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
45+
TEST_IGNORE_MESSAGE("bind() not supported");
46+
} else {
47+
TEST_ASSERT_EQUAL(NSAPI_ERROR_PARAMETER, bind_result);
48+
}
4449

4550
delete sock;
4651

TESTS/psa/entropy_inject/its_reset/COMPONENT_PSA_SRV_IMPL/test_pits_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ psa_its_status_t test_psa_its_reset_impl(void)
4242
}
4343

4444
KVMap &kv_map = KVMap::get_instance();
45-
KVStore *kvstore = kv_map.get_main_kv_instance(STR_EXPAND(MBED_CONF_STORAGE_DEFAULT_KV));
45+
KVStore *kvstore = kv_map.get_internal_kv_instance(STR_EXPAND(MBED_CONF_STORAGE_DEFAULT_KV));
4646
if (!kvstore) {
4747
return PSA_ITS_ERROR_STORAGE_FAILURE;
4848
}

TESTS/psa/entropy_inject/its_reset/COMPONENT_SPE/test_pits_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ psa_its_status_t test_psa_its_reset_impl(void)
4242
}
4343

4444
KVMap &kv_map = KVMap::get_instance();
45-
KVStore *kvstore = kv_map.get_main_kv_instance(STR_EXPAND(MBED_CONF_STORAGE_DEFAULT_KV));
45+
KVStore *kvstore = kv_map.get_internal_kv_instance(STR_EXPAND(MBED_CONF_STORAGE_DEFAULT_KV));
4646
if (!kvstore) {
4747
return PSA_ITS_ERROR_STORAGE_FAILURE;
4848
}

TESTS/psa/prot_internal_storage/its_reset/COMPONENT_PSA_SRV_IMPL/test_pits_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ psa_its_status_t test_psa_its_reset_impl(void)
4242
}
4343

4444
KVMap &kv_map = KVMap::get_instance();
45-
KVStore *kvstore = kv_map.get_main_kv_instance(STR_EXPAND(MBED_CONF_STORAGE_DEFAULT_KV));
45+
KVStore *kvstore = kv_map.get_internal_kv_instance(STR_EXPAND(MBED_CONF_STORAGE_DEFAULT_KV));
4646
if (!kvstore) {
4747
return PSA_ITS_ERROR_STORAGE_FAILURE;
4848
}

TESTS/psa/prot_internal_storage/its_reset/COMPONENT_SPE/test_pits_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ psa_its_status_t test_psa_its_reset_impl(void)
4242
}
4343

4444
KVMap &kv_map = KVMap::get_instance();
45-
KVStore *kvstore = kv_map.get_main_kv_instance(STR_EXPAND(MBED_CONF_STORAGE_DEFAULT_KV));
45+
KVStore *kvstore = kv_map.get_internal_kv_instance(STR_EXPAND(MBED_CONF_STORAGE_DEFAULT_KV));
4646
if (!kvstore) {
4747
return PSA_ITS_ERROR_STORAGE_FAILURE;
4848
}

0 commit comments

Comments
 (0)