Skip to content

Commit

Permalink
tests: drivers: sdp_asm: Fix build error
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
nordic-segl committed Jan 24, 2025
1 parent c79b773 commit 6690e66
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/drivers/sdp_asm/pytest/test_sdp_asm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -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}"
2 changes: 1 addition & 1 deletion tests/drivers/sdp_asm/src/add_1.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/kernel.h>
#include <stdint.h>

extern volatile uint8_t arg_uint8_t;
extern volatile uint16_t arg_uint16_t;
Expand Down
2 changes: 1 addition & 1 deletion tests/drivers/sdp_asm/src/add_10.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/kernel.h>
#include <stdint.h>

extern volatile uint8_t arg_uint8_t;
extern volatile uint16_t arg_uint16_t;
Expand Down
2 changes: 1 addition & 1 deletion tests/drivers/sdp_asm/src/add_100.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/kernel.h>
#include <stdint.h>

extern volatile uint8_t arg_uint8_t;
extern volatile uint16_t arg_uint16_t;
Expand Down
1 change: 1 addition & 0 deletions tests/drivers/sdp_asm/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/kernel.h>
#include <stdio.h>
#include "./add_1.h"
#include "./add_10.h"
Expand Down

0 comments on commit 6690e66

Please sign in to comment.