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>
This commit is contained in:
parent
85204b4b44
commit
dd76f8e11b
1 changed files with 3 additions and 1 deletions
|
@ -33,8 +33,10 @@ protected:
|
|||
Timer timeout;
|
||||
|
||||
int ret = capture_->allocateBuffers(bufferCount, &buffers_);
|
||||
if (ret < 0)
|
||||
if (ret < 0) {
|
||||
std::cout << "Failed to allocate buffers" << std::endl;
|
||||
return TestFail;
|
||||
}
|
||||
|
||||
capture_->dequeueTimeout.connect(this, &DequeueWatchdogTest::barkCounter);
|
||||
capture_->setDequeueTimeout(5ms);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue