When user_data is not zeroed-out, the API returns an error. Downgrade the API error to a warning log instead. Introducing this check (#76489) broke a few PTS tests, as user_data is not initialized by `net_buf_alloc()`. Doing so is in discussion: https://github.com/zephyrproject-rtos/zephyr/issues/77088 Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>
23 lines
668 B
Bash
Executable File
23 lines
668 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright (c) 2022 Nordic Semiconductor
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
|
|
|
|
simulation_id="l2cap_ecred_userdata"
|
|
verbosity_level=2
|
|
EXECUTE_TIMEOUT=120
|
|
|
|
cd ${BSIM_OUT_PATH}/bin
|
|
|
|
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_host_l2cap_userdata_prj_conf \
|
|
-v=${verbosity_level} -s=${simulation_id} -d=0 -testid=central
|
|
|
|
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_host_l2cap_userdata_prj_conf \
|
|
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=peripheral
|
|
|
|
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
|
|
-D=2 -sim_length=5e6 $@
|
|
|
|
wait_for_background_jobs
|