Commit graph

3 commits

Author SHA1 Message Date
Laurent Pinchart
3980448e9f test: v4l2_videodevice: dequeue_watchdog: Check return value of streamOn
If the streamOn() call fails, there is no way the test will then
succeed. Catch it and return a failure.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Tested-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
2022-04-07 16:19:40 +03:00
Laurent Pinchart
dd76f8e11b test: v4l2_videodevice: dequeue_watchdog: Log message on failures
Failing a test without an error message makes it difficult to debug
issues. Add a message when buffer allocation fails.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Tested-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
2022-04-07 16:19:33 +03:00
Kieran Bingham
eea1c9c631 test: v4l2_videodevice: Verify the Dequeue Watchdog
Add a test that captures 5 frames, with a short (5ms) watchdog.
The default framerate of the VIMC pipeline should ensure that
we never meet this watchdog, and the timeout should activate.

Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2022-04-06 15:44:39 +03:00