Skip to content

Commit 1f3a091

Browse files
ubiedanashif
authored andcommitted
tests: sensor: generic: Set thread priorities for back-to-back readings
In order to support back-to-back readings, it's required that the RTIO workq threads priority is higher than the caller issuing the back-to-back requests, otherwise the requests will fail as P4WQ won't have the opportunity to clear the is_done semaphore, and the subsequent request will be rejected. Signed-off-by: Luis Ubieda <[email protected]>
1 parent cc139b8 commit 1f3a091

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/drivers/build_all/sensor/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ tests:
3434
extra_configs:
3535
- CONFIG_GENERIC_SENSOR_TEST=y
3636
- CONFIG_ZTEST=y
37+
- CONFIG_ZTEST_THREAD_PRIORITY=1
3738
- CONFIG_EMUL=y
3839
- CONFIG_NATIVE_UART_0_ON_STDINOUT=y
3940
- CONFIG_SENSOR_ASYNC_API=y

0 commit comments

Comments
 (0)