From 6690e6637a408cc763b1e5f3968ee311776d29f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20G=C5=82=C4=85b?= Date: Fri, 24 Jan 2025 09:40:41 +0100 Subject: [PATCH] tests: drivers: sdp_asm: Fix build error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Twister is unable to build tests/drivers/sdp_asm. However, issue is not observed when test is compiled with 'west build'. Signed-off-by: Sebastian Głąb --- tests/drivers/sdp_asm/pytest/test_sdp_asm.py | 4 ++-- tests/drivers/sdp_asm/src/add_1.c | 2 +- tests/drivers/sdp_asm/src/add_10.c | 2 +- tests/drivers/sdp_asm/src/add_100.c | 2 +- tests/drivers/sdp_asm/src/main.c | 1 + 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/drivers/sdp_asm/pytest/test_sdp_asm.py b/tests/drivers/sdp_asm/pytest/test_sdp_asm.py index ae814f99066c..d656916f0db1 100644 --- a/tests/drivers/sdp_asm/pytest/test_sdp_asm.py +++ b/tests/drivers/sdp_asm/pytest/test_sdp_asm.py @@ -40,7 +40,7 @@ def test_sdp_asm(dut: DeviceAdapter): after add_100: 212, 323, 434""" logger.info("# Get output from serial port") - output = "\n".join(dut.readlines_until(regex='Test completed', timeout=5.0)) + output = "\n".join(dut.readlines_until(regex='Test completed', timeout=10.0)) logger.info("# Confirm that precompiled .S files were linked in the build") assert OUTPUT1 in output, f"Unexpected output: {output}" @@ -66,7 +66,7 @@ def test_sdp_asm(dut: DeviceAdapter): execute_shell_cmd(cmd, f"{BUILD_DIR}") logger.info("# Get output from serial port") - output = "\n".join(dut.readlines_until(regex='Test completed', timeout=5.0)) + output = "\n".join(dut.readlines_until(regex='Test completed', timeout=10.0)) logger.info("# Confirm that new .S files were linked in the build") assert OUTPUT2 in output, f"Unexpected output: {output}" diff --git a/tests/drivers/sdp_asm/src/add_1.c b/tests/drivers/sdp_asm/src/add_1.c index 6c4a1780ad50..d1976c6e7732 100644 --- a/tests/drivers/sdp_asm/src/add_1.c +++ b/tests/drivers/sdp_asm/src/add_1.c @@ -4,7 +4,7 @@ * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause */ -#include +#include extern volatile uint8_t arg_uint8_t; extern volatile uint16_t arg_uint16_t; diff --git a/tests/drivers/sdp_asm/src/add_10.c b/tests/drivers/sdp_asm/src/add_10.c index dd04d81dba0b..7f6172496571 100644 --- a/tests/drivers/sdp_asm/src/add_10.c +++ b/tests/drivers/sdp_asm/src/add_10.c @@ -4,7 +4,7 @@ * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause */ -#include +#include extern volatile uint8_t arg_uint8_t; extern volatile uint16_t arg_uint16_t; diff --git a/tests/drivers/sdp_asm/src/add_100.c b/tests/drivers/sdp_asm/src/add_100.c index ca849b5afe97..01a8c00b90aa 100644 --- a/tests/drivers/sdp_asm/src/add_100.c +++ b/tests/drivers/sdp_asm/src/add_100.c @@ -4,7 +4,7 @@ * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause */ -#include +#include extern volatile uint8_t arg_uint8_t; extern volatile uint16_t arg_uint16_t; diff --git a/tests/drivers/sdp_asm/src/main.c b/tests/drivers/sdp_asm/src/main.c index 07a57dcca750..2d448d03f022 100644 --- a/tests/drivers/sdp_asm/src/main.c +++ b/tests/drivers/sdp_asm/src/main.c @@ -4,6 +4,7 @@ * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause */ +#include #include #include "./add_1.h" #include "./add_10.h"