Skip to content

Commit 15774e1

Browse files
aescolardleach02
authored andcommitted
tests/boards/native_sim/cpu_wait: Correct ifdef
This test works both with native_posix and native_sim. native_sim will eventually not set NATIVE_SIM_NATIVE_POSIX_COMPAT (i.e. not pretend to be native_posix) so let's correct this ifdef Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent 517d51e commit 15774e1

File tree

1 file changed

+1
-1
lines changed
  • tests/boards/native_sim/cpu_wait/src

1 file changed

+1
-1
lines changed

tests/boards/native_sim/cpu_wait/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ static void np_timer_isr_test_replacement(const void *arg)
214214
*/
215215
ZTEST(native_cpu_hold, test_cpu_hold_with_interrupts)
216216
{
217-
#if defined(CONFIG_BOARD_NATIVE_POSIX)
217+
#if defined(CONFIG_BOARD_NATIVE_POSIX) || defined(CONFIG_BOARD_NATIVE_SIM)
218218
/* So far we only have a test for native_posix.
219219
* As the test hooks into an interrupt to cause an extra delay
220220
* this is very platform specific

0 commit comments

Comments
 (0)