Skip to content

Commit

Permalink
tests: smp_suspend: Tweak duration and timeouts
Browse files Browse the repository at this point in the history
Reduces the number of seconds that the test runs to 15 seconds
(down from 30 seconds). This should still be sufficient time
to determine if there is anything amiss with the synchonous
thread suspend/resume. Furthermore, the test itself has been
tagged as being slow and its timeout increased to 10 minutes
(600 seconds) as some simulators are rather slow.

Signed-off-by: Peter Mitsis <[email protected]>
  • Loading branch information
peter-mitsis authored and nashif committed Jan 19, 2024
1 parent db42900 commit d810836
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/kernel/smp_suspend/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ ZTEST(smp_suspend_resume, test_smp_thread_suspend_resume_stress)

k_thread_resume(&thread[0]);

for (unsigned int iteration = 0; iteration < 30; iteration++) {
for (unsigned int iteration = 0; iteration < 15; iteration++) {
k_sleep(K_MSEC(1000));

for (i = 0; i < NUM_THREADS; i++) {
Expand Down
1 change: 1 addition & 0 deletions tests/kernel/smp_suspend/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ tests:
tags:
- kernel
- smp
timeout: 600
filter: (CONFIG_MP_MAX_NUM_CPUS > 1)

0 comments on commit d810836

Please sign in to comment.