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 <luisf@croxel.com>
This commit is contained in:
Luis Ubieda 2024-06-17 16:15:59 -04:00 committed by Anas Nashif
commit 1f3a0910d7

View file

@ -34,6 +34,7 @@ tests:
extra_configs:
- CONFIG_GENERIC_SENSOR_TEST=y
- CONFIG_ZTEST=y
- CONFIG_ZTEST_THREAD_PRIORITY=1
- CONFIG_EMUL=y
- CONFIG_NATIVE_UART_0_ON_STDINOUT=y
- CONFIG_SENSOR_ASYNC_API=y