Skip to content

Commit 2e8ae9b

Browse files
nordic-seglnordic-piks
authored andcommitted
tests: drivers: sdp_asm: Fix build error
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]>
1 parent 2f77933 commit 2e8ae9b

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

tests/drivers/sdp_asm/pytest/test_sdp_asm.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ def test_sdp_asm(dut: DeviceAdapter):
6262
execute_shell_cmd(cmd, f"{BUILD_DIR}")
6363

6464
logger.info("# Reflash")
65-
cmd = ['west', 'flash', '--erase']
66-
execute_shell_cmd(cmd, f"{BUILD_DIR}")
65+
dut._flash_and_run()
6766

6867
logger.info("# Get output from serial port")
6968
output = "\n".join(dut.readlines_until(regex='Test completed', timeout=5.0))

tests/drivers/sdp_asm/src/add_1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7-
#include <zephyr/kernel.h>
7+
#include <stdint.h>
88

99
extern volatile uint8_t arg_uint8_t;
1010
extern volatile uint16_t arg_uint16_t;

tests/drivers/sdp_asm/src/add_10.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7-
#include <zephyr/kernel.h>
7+
#include <stdint.h>
88

99
extern volatile uint8_t arg_uint8_t;
1010
extern volatile uint16_t arg_uint16_t;

tests/drivers/sdp_asm/src/add_100.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7-
#include <zephyr/kernel.h>
7+
#include <stdint.h>
88

99
extern volatile uint8_t arg_uint8_t;
1010
extern volatile uint16_t arg_uint16_t;

tests/drivers/sdp_asm/src/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7+
#include <zephyr/kernel.h>
78
#include <stdio.h>
89
#include "./add_1.h"
910
#include "./add_10.h"

0 commit comments

Comments
 (0)