Skip to content

Release candidate for mbed-os-5.11.2 #9370

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 135 commits into from
Jan 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
135 commits
Select commit Hold shift + click to select a range
4a0b2c1
More static place for astyle
Dec 28, 2018
75c8c3b
Check is allocation in event queue was success or not, and report err…
Dec 11, 2018
817b493
Memory allocated from parent queue was freed/added to chained queue.
Dec 11, 2018
85b7537
Return error in case chaining fails
Dec 13, 2018
a8fde95
Update the unit test stubs as per API changes
Dec 27, 2018
e875e5d
Fix SPM HAL test
Dec 17, 2018
8e20890
Run the non-secure cases first
Dec 17, 2018
cc5e905
Update TESTS/mbed_hal/spm/main.cpp
Dec 23, 2018
503f2fc
Fix ticker_read_us() race condition.
tkem Dec 21, 2018
ee64d82
Resolve string literal error
Dec 21, 2018
95d4353
Resolved warning: variable declared but never referenced
Dec 21, 2018
7dda22f
Resolved: [Error] main.cpp@115,34: [Pe266]: "size" is ambiguous
Dec 21, 2018
595e487
Greentea tests ignore bind returning UNSUPPORTED
michalpasztamobica Dec 20, 2018
2789854
ARMC6: Use float-abi=hard
kjbracey Dec 19, 2018
fd0ff1f
Remove unnecessary mbed_rtos_storage.h in crypto_misc.cpp
ccli8 Dec 24, 2018
8eef604
Fix crypto_misc.cpp compile error with RTOS-absent
ccli8 Dec 24, 2018
3e94b86
Refine MBED_CONF_RTOS_PRESENT check in crypto_misc.cpp
ccli8 Jan 3, 2019
cf12140
Fix UART flow control CTS/RTS
ccli8 Dec 24, 2018
db22ce9
Remove ROM overlaps checkup for kvstore FLASHIAP blockdevice if non d…
Dec 26, 2018
ea044c6
realtek-rtl8195am-Hide_Debugging_Messages
AdamZhang0124 Dec 27, 2018
2de0911
Change to mbedtls_platform_zeroize()
Jan 1, 2019
309d42a
Disable MPU support on NRF52x platforms
Dec 21, 2018
a82b30e
BLE: NRF52 returns tx/rx phy on phy update callback
desmond-blue Jan 2, 2019
53ff2d5
STM32L0 ADC TEMPERATURE CHANNEL rework
jeromecoutant Jan 3, 2019
3526625
Fix Python 3 syntax in rtc host test
bridadan Jan 3, 2019
9b6c139
suppress scan timeout if we disabled scanning
paul-szczepanek-arm Dec 10, 2018
89e35bf
call advertising end even if stopped by us
paul-szczepanek-arm Dec 13, 2018
6e13b75
Modify IRQ handler processing without RTOS at Cortex-A ARM Compiler
TomoYamanaka Dec 20, 2018
95c8f17
Modify IRQ handler processing without RTOS at Cortex-A GCC Compiler
TomoYamanaka Dec 20, 2018
5961100
Modify IRQ handler processing without RTOS at Cortex-A IAR Compiler
TomoYamanaka Dec 20, 2018
d3d476a
Modify the definition as to whether RTOS is not present in sys.cpp.
TomoYamanaka Jan 4, 2019
03058ba
Prevent ESP8266 stopping HW control on init
michalpasztamobica Dec 20, 2018
f5ac84b
Don't consume 36 kB just for Ethernet buffers.
Dec 21, 2018
12a6333
Allow LwIP TCP retransmissions to be configured and tune those smaller.
Dec 21, 2018
881be36
changed UART0 to UART2, added UART_5
Jan 3, 2019
d7529c5
hal-qspi_test: move frequency setting before flash init
maciejbocianski Jan 3, 2019
5f26c56
FastModel: remove SMSC9220 related definitions from SDK
Jan 2, 2019
d62e77d
FastModel: share the same MPS2 platform header to all targets
Jan 2, 2019
f1f4efd
FastModel: rename SMM_MPS2.h to FVP_MPS2.h
Jan 2, 2019
a8d3685
nanostack-mac-tester sync with v1.0.1
Jan 3, 2019
1b67295
NUCLEO_H743ZI: add initial SDK
jeromecoutant Feb 16, 2018
65e7912
NUCLEO_H743ZI: enable crash capture
bcostm Dec 11, 2018
c6f3d92
NUCLEO_H743ZI: include rtc LL driver
bcostm Dec 11, 2018
2dfd1e5
NUCLEO_H743ZI: add crash reporting for IAR
bcostm Dec 12, 2018
aebb55b
mbed.h includes removed
Dec 28, 2018
62c501e
Cleaned 802.15.4_RF to not have mbed.h includes
Dec 28, 2018
db4d121
36510 test build fixed
Jan 3, 2019
4041615
Fixed Realtek test build
Jan 3, 2019
235921f
Fixes for features/FEATURE_BLE/ble/services/EddystoneService.h
Jan 4, 2019
c60b882
Fixes for features/FEATURE_BLE/ble/services/EddystoneConfigService.h
Jan 4, 2019
d08c64e
add bootloader support to the DISCO_F469NI
ithinuel Jan 2, 2019
0190e3e
Simplified astyle travis test to be easier to reason about
Dec 14, 2018
2f6a8a2
Skip files that were deleted
Dec 18, 2018
03118df
Add back statements adding ppa repos...
Jan 4, 2019
5598112
STM32L4 ADC VBAT CHANNEL
jeromecoutant Jan 3, 2019
498e4e6
Fix travis astyle usage of .astyleignore
Jan 6, 2019
dd81345
Randomizing backoff for Join process
Jan 4, 2019
8f2b5ef
Add get_type method to block devices.
Nov 27, 2018
5a83c77
astyle fix
Dec 19, 2018
65f9e7c
astyle fix
Dec 19, 2018
db1dade
Documnent changes and adding const to get_type method
Dec 23, 2018
baab309
Increases events.shared-stacksize to 2K
Jan 3, 2019
fcc9bb7
Cellular: fix state machine to check network attach
Dec 19, 2018
b022008
Don't use define checks on DEVICE_FOO macros (partner code)
deece Dec 19, 2018
b7004eb
Remove ROM overlaps checkup for kvstore FLASHIAP blockdevice if non d…
Dec 26, 2018
40263b3
fixing FAT mount failure in kvstore FILESYSTEM
Jan 3, 2019
98f6364
Adding return MBED_ERROR_UNSUPPORTED in _storage_config_default if no…
Jan 7, 2019
427a395
Correcting the error-case trace from mesh-api interfaces
KariHaapalehto Jan 7, 2019
cd53b0a
This commit fixes an issue in which boards with FlashIAP block device…
Jan 6, 2019
69d57c8
TDBStore: fix bug in sector blank check for variant sized sectors
Jan 2, 2019
d85fda7
TDBStore: Perform garbage collection on failed writes
Dec 26, 2018
2b9f5da
reduce info traces to debug level to prevent logs overflow
Jan 6, 2019
ad1de50
travis: add keys for ubuntu - workaround
0xc0170 Jan 8, 2019
84a0a5d
STM32 L0 & L1: FLASH is EEPROM
jeromecoutant Jan 4, 2019
c063eaa
Fix security bug in DeviceKey
boomer41 Jan 7, 2019
40bfbc5
Updated pyyaml due to possible vulnerability
Jan 8, 2019
ec57224
ESP8266: Set HW reset time to 2ms
Jan 8, 2019
0f9098d
Fixes AT-layer socket_open-functions
Jan 7, 2019
7136c78
Adding low code size tool for direct access to Devicekey. This enable…
Jan 3, 2019
879d234
Updated test to consider tdb_internal non default configuration as well
Jan 3, 2019
a1788e9
Added utility function to help locate expected internal flash tdbstor…
Jan 7, 2019
16a4e34
The direct_access_devicekey test should not run if there is no compon…
Jan 8, 2019
f7d7432
Use mbed_error_printf instead of debug for ISR friendly prints
Jan 4, 2019
eaad4d0
Added TARGET_SDT64B, a bootloader file on SDT64B
Jan 7, 2019
48af6fd
Edit README.md
Jan 9, 2019
c137ce9
fix MPU compilation issue
caixue1102 Jan 7, 2019
090f06f
SPIFBlockDevice docs update
juhaylinen Jan 9, 2019
3c03d70
STM32L476VG: fix wrong pin map function on ADC channels
kevinong0108 Jan 9, 2019
d374cfa
LPC546XX: Do not make MCU_LPC546XX target public
mmahadevan108 Jan 9, 2019
91832e6
socket_send() returns WOULD_BLOCK if server won't accept
Jan 4, 2019
7bb8345
Kvstore tests api change to run on K64F only
theamirocohen Jan 9, 2019
5b281d7
Remove kvstore's mbed_lib.json file (not relevant any more)
Jan 9, 2019
224493f
Add GD32_F450ZI as new target
ChazJin Jan 3, 2019
2e1adee
modify the 'INITIAL_SP' for GD32F450ZI
ChazJin Jan 3, 2019
ee09fe7
add button definitions
ChazJin Jan 4, 2019
a915c84
add SPDX indentifier, modify 450zi.icf file and static definition in …
ChazJin Jan 7, 2019
549bc0a
adjust directory structure for device
ChazJin Jan 8, 2019
57d269c
tools/importer script changes
Dec 20, 2018
57adcfd
Corrected simplified astyle job behavior when base branch is not master
Jan 11, 2019
9d1d967
STM32 : typo error in QSPI
jeromecoutant Jan 10, 2019
1fa1ea0
STM32: astyle check
jeromecoutant Jan 9, 2019
e5e795e
Some Doxygen fixes in MBRBlockDevice and BlockDevice
Jan 10, 2019
47b3ee2
Doxygen changes to ProfilingBlockDevice and SlicingBlockDevice.
Jan 10, 2019
f32df9d
minor editorial tweaks
Jan 10, 2019
8b91724
Update BlockDevice.h
GuyWi Jan 10, 2019
3b49521
STM32: replace missing #ifdef DEVICE_xxx
jeromecoutant Jan 10, 2019
adc8b45
Add GD32_E10X as new target
ChazJin Dec 27, 2018
b9841a7
resolve conflicting file targets.json and add support for GD32_E103VB
ChazJin Jan 3, 2019
d09a3aa
adjust directory structure for device
ChazJin Jan 8, 2019
05eb6c5
Support boot stack size configuration option
ChazJin Jan 11, 2019
e57c9f3
Fix the general block device to support better low memory boards
Jan 13, 2019
3b90f2b
Enable PSA APIs on Pelion boards
Dec 25, 2018
6b68b77
Add FLASHAIP component
Dec 26, 2018
ce9fa06
Enable entropy injection on PSA targets
Dec 26, 2018
e7b5918
Set "TDB_INTERNAL" default storage for Pelion
Jan 1, 2019
e399c89
fix its_reset test
Jan 1, 2019
807d0b6
Revert "Enable entropy injection on PSA targets"
Jan 13, 2019
aeeccd9
Doxygen update for LoRaRadio class
Jan 10, 2019
885212e
Writer review
Jan 10, 2019
125ab24
Fixed single space that astyle caught
Jan 10, 2019
82953a5
Parameterise repo used in Mbed TLS importer script
simonbutcher Jan 11, 2019
85a8461
CMSIS/RTX: Update Armv8M IAR 8.x assembly files - add END
Jan 8, 2019
a48a99e
Added IAR assembly file update commit to cmsis importer
Jan 8, 2019
92637ad
CMSIS/CORTEX-M: Don't build mbed_tz_context.c in TF-M targets
Jan 3, 2019
8a1964e
Update cmsis_importer.json SHAs
Jan 10, 2019
0e00159
Flush ESP8266 serial input buffers after HW reset
Jan 10, 2019
1cad77b
Update and cleanup BLE.h doxygen
Jan 10, 2019
06cf7c9
SDBlockDevice docs update
juhaylinen Jan 10, 2019
6309eda
some minor streamlining and editorial changes
Jan 10, 2019
b1837c6
Update Mbed version block
adbridge Jan 14, 2019
e5888fe
Create runtime error if TDBStore and NVStore are created in internal …
Dec 3, 2018
70c0745
removing output parameter from avoid_conflict_nvstore_tdbstore function.
Dec 19, 2018
5e0a2d9
travis: set hypothesis to 3.88 version
0xc0170 Jan 14, 2019
a2220f3
Merge pull request #9384 from davidsaada/david_mbr_erase_start
Jan 16, 2019
1f96a7c
Added pyocd depencency to resolve Travis CI issue
Jan 15, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
57 changes: 21 additions & 36 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ before_install:
# Setup ppa to make sure arm-none-eabi-gcc is correct version
- sudo add-apt-repository -y ppa:team-gcc-arm-embedded/ppa
- sudo add-apt-repository -y ppa:deadsnakes/ppa
# 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
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 762E3157
# Loop until update succeeds (timeouts can occur)
- travis_retry $(! sudo apt-get update 2>&1 |grep Failed)

Expand Down Expand Up @@ -105,7 +107,7 @@ matrix:
# Install dependencies
- sudo apt-get install gcc-arm-embedded
- pip install -r requirements.txt
- pip install pytest pylint hypothesis mock coverage coveralls
- pip install pytest pylint hypothesis==3.88.3 mock coverage coveralls
# Print versions we use

- arm-none-eabi-gcc --version
Expand Down Expand Up @@ -134,43 +136,25 @@ matrix:
- env:
- NAME=astyle
install:
- curl -L0 https://mbed-os.s3-eu-west-1.amazonaws.com/builds/deps/astyle_3.1_linux.tar.gz --output astyle.tar.gz;
mkdir -p BUILD && tar xf astyle.tar.gz -C BUILD;
pushd BUILD/astyle/build/gcc;
make;
export PATH=$PWD/bin:$PATH;
popd;
- astyle --version
- >-
curl -L0 https://mbed-os.s3-eu-west-1.amazonaws.com/builds/deps/astyle_3.1_linux.tar.gz --output astyle.tar.gz;
mkdir -p BUILD && tar xf astyle.tar.gz -C BUILD;
cd BUILD/astyle/build/gcc;
make;
export PATH=$PWD/bin:$PATH;
cd -
- astyle --version
# Fetch remaining information needed for branch comparison
- git fetch --all --unshallow --tags
- git fetch origin "${TRAVIS_BRANCH}"
script:
# only changed files this time
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;
if [ $(cat astyle-files-changed.out | grep Formatted | wc -l) -ne 0 ]; then
git --no-pager diff;
echo "";
echo "AStyle check failed, please fix style issues as shown above";
(exit 1);
else
echo "Coding style check OK";
fi
after_success:
# run astyle for all files on the branch
- git checkout -- .
- 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;
# update status if we succeeded, compare with master if possible
- |
CURR=$(cat astyle-branch.out | grep Formatted | wc -l)
PREV=$(curl -u "$MBED_BOT" https://api.github.com/repos/$TRAVIS_REPO_SLUG/status/master \
| jq -re "select(.sha != \"$TRAVIS_COMMIT\")
| .statuses[] | select(.context == \"travis-ci/$NAME\").description
| capture(\", (?<files>[0-9]+) files\").files" \
|| echo 0)
- >-
git diff --name-only --diff-filter=d FETCH_HEAD..HEAD \
| ( grep '.\(c\|cpp\|h\|hpp\)$' || true ) \
| ( fgrep -v -f .astyleignore || true ) \
| while read file; do astyle -n --options=.astylerc "${file}"; done
- git diff --exit-code --diff-filter=d --color

STATUSM="Passed, ${CURR} files"
if [ "$PREV" -ne 0 ]
then
STATUSM="$STATUSM ($(python -c "print '%+d' % ($CURR-$PREV)") files)"
fi
- bash -c "$STATUS" success "$STATUSM"
- env:
- NAME=events
- EVENTS=events
Expand Down Expand Up @@ -294,6 +278,7 @@ matrix:
- echo 'Checking that there is no GPL licence text in code'
- ! git grep -q --ignore-case "gnu general public";
- ! git grep -q --ignore-case "gnu library general public";

- env:
- NAME=psa-autogen
script:
Expand Down
2 changes: 1 addition & 1 deletion TESTS/host_tests/rtc_calc_auto.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def _verify_timestamp(self, key, value, timestamp):
self.send_kv("passed", str(response))
else:
self.send_kv("failed", 0)
print "expected = %d, result = %d" % (expected_timestamp , actual_timestamp)
print("expected = %d, result = %d" % (expected_timestamp , actual_timestamp))

# calculate next date
if (self.first):
Expand Down
337 changes: 161 additions & 176 deletions TESTS/mbed_hal/qspi/main.cpp

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions TESTS/mbed_hal/qspi/qspi_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ template < qspi_bus_width_t write_inst_width,
unsigned int write_cmd,
qspi_address_size_t write_addr_size,
qspi_alt_size_t write_alt_size,
int write_frequency,
uint32_t write_count,
qspi_bus_width_t read_inst_width,
qspi_bus_width_t read_addr_width,
Expand All @@ -87,7 +86,7 @@ template < qspi_bus_width_t write_inst_width,
int read_dummy_cycles,
qspi_address_size_t read_addr_size,
qspi_alt_size_t read_alt_size,
int read_frequency,
int frequency,
uint32_t read_count,
uint32_t test_count,
uint32_t data_size,
Expand Down
6 changes: 3 additions & 3 deletions TESTS/mbed_hal/spm/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ __attribute__((naked)) void call_mem(uint32_t addr)
// since exception will be generated for invalid memory access.
// Other instructions are for calling do_nothing function according to AAPCS.
__ASM(
"LDR r1, [r0]\n"
"LDR r3, [r0]\n"
"BX lr\n"
);
}
Expand Down Expand Up @@ -138,10 +138,10 @@ utest::v1::status_t fault_override_teardown(const Case *const source, const size
}

Case cases[] = {
Case("SPM - Access secure RAM", fault_override_setup, secure_ram_fault_test, fault_override_teardown),
Case("SPM - Access secure Flash", fault_override_setup, secure_flash_fault_test, fault_override_teardown),
Case("SPM - Access non-secure RAM", fault_override_setup, non_secure_ram_fault_test, fault_override_teardown),
Case("SPM - Access non-secure Flash", fault_override_setup, non_secure_flash_fault_test, fault_override_teardown),
Case("SPM - Access secure RAM", fault_override_setup, secure_ram_fault_test, fault_override_teardown),
Case("SPM - Access secure Flash", fault_override_setup, secure_flash_fault_test, fault_override_teardown)
};

utest::v1::status_t greentea_test_setup(const size_t number_of_cases)
Expand Down
7 changes: 6 additions & 1 deletion TESTS/netsocket/tcp/tcpsocket_bind_address.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ void TCPSOCKET_BIND_ADDRESS()
}
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
SocketAddress sockAddr = SocketAddress(get_interface()->get_ip_address(), 80);
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->bind(sockAddr));
nsapi_error_t bind_result = sock->bind(sockAddr);
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
TEST_IGNORE_MESSAGE("bind() not supported");
} else {
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, bind_result);
}

delete sock;

Expand Down
7 changes: 6 additions & 1 deletion TESTS/netsocket/tcp/tcpsocket_bind_address_invalid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ void TCPSOCKET_BIND_ADDRESS_INVALID()
TEST_FAIL();
}
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
TEST_ASSERT_EQUAL(NSAPI_ERROR_PARAMETER, sock->bind("190.2.3.4", 1024));
nsapi_error_t bind_result = sock->bind("190.2.3.4", 1024);
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
TEST_IGNORE_MESSAGE("bind() not supported");
} else {
TEST_ASSERT_EQUAL(NSAPI_ERROR_PARAMETER, bind_result);
}

delete sock;

Expand Down
7 changes: 6 additions & 1 deletion TESTS/netsocket/tcp/tcpsocket_bind_address_null.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ void TCPSOCKET_BIND_ADDRESS_NULL()
TEST_FAIL();
}
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->bind(NULL, 1024));
nsapi_error_t bind_result = sock->bind(NULL, 1024);
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
TEST_IGNORE_MESSAGE("bind() not supported");
} else {
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, bind_result);
}

delete sock;

Expand Down
7 changes: 6 additions & 1 deletion TESTS/netsocket/tcp/tcpsocket_bind_address_port.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ void TCPSOCKET_BIND_ADDRESS_PORT()
TEST_FAIL();
}
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->bind(get_interface()->get_ip_address(), 80));
nsapi_error_t bind_result = sock->bind(get_interface()->get_ip_address(), 80);
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
TEST_IGNORE_MESSAGE("bind() not supported");
} else {
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, bind_result);
}

delete sock;

Expand Down
7 changes: 6 additions & 1 deletion TESTS/netsocket/tcp/tcpsocket_bind_port.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ void TCPSOCKET_BIND_PORT()
TEST_FAIL();
}
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->bind(1024));
nsapi_error_t bind_result = sock->bind(1024);
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
TEST_IGNORE_MESSAGE("bind() not supported");
} else {
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, bind_result);
}

delete sock;

Expand Down
9 changes: 8 additions & 1 deletion TESTS/netsocket/tcp/tcpsocket_bind_port_fail.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,14 @@ void TCPSOCKET_BIND_PORT_FAIL()
TEST_FAIL();
}
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->bind(1024));
nsapi_error_t bind_result = sock->bind(1024);
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
TEST_IGNORE_MESSAGE("bind() not supported");
delete sock;
return;
} else {
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, bind_result);
}

TCPSocket *sock2 = new TCPSocket;
if (!sock2) {
Expand Down
7 changes: 6 additions & 1 deletion TESTS/netsocket/tcp/tcpsocket_bind_unopened.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ void TCPSOCKET_BIND_UNOPENED()
if (!sock) {
TEST_FAIL();
}
TEST_ASSERT_EQUAL(NSAPI_ERROR_NO_SOCKET, sock->bind(1024));
nsapi_error_t bind_result = sock->bind(1024);
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
TEST_IGNORE_MESSAGE("bind() not supported");
} else {
TEST_ASSERT_EQUAL(NSAPI_ERROR_NO_SOCKET, bind_result);
}

delete sock;

Expand Down
7 changes: 6 additions & 1 deletion TESTS/netsocket/tcp/tcpsocket_bind_wrong_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ void TCPSOCKET_BIND_WRONG_TYPE()
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
char addr_bytes[16] = {0xfe, 0x80, 0xff, 0x1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
SocketAddress sockAddr = SocketAddress(addr_bytes, NSAPI_IPv4, 80);
TEST_ASSERT_EQUAL(NSAPI_ERROR_PARAMETER, sock->bind(sockAddr));
nsapi_error_t bind_result = sock->bind(sockAddr);
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
TEST_IGNORE_MESSAGE("bind() not supported");
} else {
TEST_ASSERT_EQUAL(NSAPI_ERROR_PARAMETER, bind_result);
}

delete sock;

Expand Down
7 changes: 6 additions & 1 deletion TESTS/netsocket/udp/udpsocket_bind_address.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ void UDPSOCKET_BIND_ADDRESS()
}
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
SocketAddress sockAddr = SocketAddress(get_interface()->get_ip_address(), 80);
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->bind(sockAddr));
nsapi_error_t bind_result = sock->bind(sockAddr);
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
TEST_IGNORE_MESSAGE("bind() not supported");
} else {
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, bind_result);
}

delete sock;

Expand Down
7 changes: 6 additions & 1 deletion TESTS/netsocket/udp/udpsocket_bind_address_invalid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ void UDPSOCKET_BIND_ADDRESS_INVALID()
TEST_FAIL();
}
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
TEST_ASSERT_EQUAL(NSAPI_ERROR_PARAMETER, sock->bind("190.2.3.4", 1024));
nsapi_error_t bind_result = sock->bind("190.2.3.4", 1024);
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
TEST_IGNORE_MESSAGE("bind() not supported");
} else {
TEST_ASSERT_EQUAL(NSAPI_ERROR_PARAMETER, bind_result);
}

delete sock;

Expand Down
7 changes: 6 additions & 1 deletion TESTS/netsocket/udp/udpsocket_bind_address_null.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ void UDPSOCKET_BIND_ADDRESS_NULL()
TEST_FAIL();
}
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->bind(NULL, 1024));
nsapi_error_t bind_result = sock->bind(NULL, 1024);
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
TEST_IGNORE_MESSAGE("bind() not supported");
} else {
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, bind_result);
}

delete sock;

Expand Down
7 changes: 6 additions & 1 deletion TESTS/netsocket/udp/udpsocket_bind_address_port.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ void UDPSOCKET_BIND_ADDRESS_PORT()
TEST_FAIL();
}
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->bind(get_interface()->get_ip_address(), 80));
nsapi_error_t bind_result = sock->bind(get_interface()->get_ip_address(), 80);
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
TEST_IGNORE_MESSAGE("bind() not supported");
} else {
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, bind_result);
}

delete sock;

Expand Down
7 changes: 6 additions & 1 deletion TESTS/netsocket/udp/udpsocket_bind_port.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ void UDPSOCKET_BIND_PORT()
TEST_FAIL();
}
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->bind(1024));
nsapi_error_t bind_result = sock->bind(1024);
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
TEST_IGNORE_MESSAGE("bind() not supported");
} else {
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, bind_result);
}

delete sock;

Expand Down
9 changes: 8 additions & 1 deletion TESTS/netsocket/udp/udpsocket_bind_port_fail.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,14 @@ void UDPSOCKET_BIND_PORT_FAIL()
TEST_FAIL();
}
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->bind(1024));
nsapi_error_t bind_result = sock->bind(1024);
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
TEST_IGNORE_MESSAGE("bind() not supported");
delete sock;
return;
} else {
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, bind_result);
}

UDPSocket *sock2 = new UDPSocket;
if (!sock2) {
Expand Down
7 changes: 6 additions & 1 deletion TESTS/netsocket/udp/udpsocket_bind_unopened.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ void UDPSOCKET_BIND_UNOPENED()
if (!sock) {
TEST_FAIL();
}
TEST_ASSERT_EQUAL(NSAPI_ERROR_NO_SOCKET, sock->bind(1024));
nsapi_error_t bind_result = sock->bind(1024);
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
TEST_IGNORE_MESSAGE("bind() not supported");
} else {
TEST_ASSERT_EQUAL(NSAPI_ERROR_NO_SOCKET, bind_result);
}

delete sock;

Expand Down
7 changes: 6 additions & 1 deletion TESTS/netsocket/udp/udpsocket_bind_wrong_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ void UDPSOCKET_BIND_WRONG_TYPE()
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(get_interface()));
char addr_bytes[16] = {0xfe, 0x80, 0xff, 0x1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
SocketAddress sockAddr = SocketAddress(addr_bytes, NSAPI_IPv4, 80);
TEST_ASSERT_EQUAL(NSAPI_ERROR_PARAMETER, sock->bind(sockAddr));
nsapi_error_t bind_result = sock->bind(sockAddr);
if (bind_result == NSAPI_ERROR_UNSUPPORTED) {
TEST_IGNORE_MESSAGE("bind() not supported");
} else {
TEST_ASSERT_EQUAL(NSAPI_ERROR_PARAMETER, bind_result);
}

delete sock;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ psa_its_status_t test_psa_its_reset_impl(void)
}

KVMap &kv_map = KVMap::get_instance();
KVStore *kvstore = kv_map.get_main_kv_instance(STR_EXPAND(MBED_CONF_STORAGE_DEFAULT_KV));
KVStore *kvstore = kv_map.get_internal_kv_instance(STR_EXPAND(MBED_CONF_STORAGE_DEFAULT_KV));
if (!kvstore) {
return PSA_ITS_ERROR_STORAGE_FAILURE;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ psa_its_status_t test_psa_its_reset_impl(void)
}

KVMap &kv_map = KVMap::get_instance();
KVStore *kvstore = kv_map.get_main_kv_instance(STR_EXPAND(MBED_CONF_STORAGE_DEFAULT_KV));
KVStore *kvstore = kv_map.get_internal_kv_instance(STR_EXPAND(MBED_CONF_STORAGE_DEFAULT_KV));
if (!kvstore) {
return PSA_ITS_ERROR_STORAGE_FAILURE;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ psa_its_status_t test_psa_its_reset_impl(void)
}

KVMap &kv_map = KVMap::get_instance();
KVStore *kvstore = kv_map.get_main_kv_instance(STR_EXPAND(MBED_CONF_STORAGE_DEFAULT_KV));
KVStore *kvstore = kv_map.get_internal_kv_instance(STR_EXPAND(MBED_CONF_STORAGE_DEFAULT_KV));
if (!kvstore) {
return PSA_ITS_ERROR_STORAGE_FAILURE;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ psa_its_status_t test_psa_its_reset_impl(void)
}

KVMap &kv_map = KVMap::get_instance();
KVStore *kvstore = kv_map.get_main_kv_instance(STR_EXPAND(MBED_CONF_STORAGE_DEFAULT_KV));
KVStore *kvstore = kv_map.get_internal_kv_instance(STR_EXPAND(MBED_CONF_STORAGE_DEFAULT_KV));
if (!kvstore) {
return PSA_ITS_ERROR_STORAGE_FAILURE;
}
Expand Down
Loading