Skip to content

Commit 64bf182

Browse files
rexutjhedberg
authored andcommitted
tests: can: api: changing the test thread priority
The test thread and the system workqueue have the same priority, mostly some specific CAN driver threads a lower preemptive priority, so it is a bit arbitrary whether the workqueue cleans up the send context before the next send. Signed-off-by: Stephan Linz <[email protected]>
1 parent b35a32b commit 64bf182

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/drivers/can/api/prj.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,13 @@ CONFIG_STATS=y
55
CONFIG_CAN_STATS=y
66
CONFIG_TEST_USERSPACE=y
77
CONFIG_ZTEST=y
8+
# Global default settings assign both the ZTest thread and the
9+
# system worker queue to the same cooperative priority. Relying
10+
# solely on the system worker queue for concurrency management
11+
# can lead to unwanted interference between the two threads,
12+
# causing the test to report its expected sequence of system
13+
# events as an error. This situation will be avoided by moving
14+
# the ZTest thread to the highest priority preemptive thread.
15+
CONFIG_ZTEST_THREAD_PRIORITY=0
816
# The canfd test suite may be skipped
917
CONFIG_ZTEST_VERIFY_RUN_ALL=n

0 commit comments

Comments
 (0)