diff options
author | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2019-12-18 18:47:45 +0100 |
---|---|---|
committer | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2020-01-12 16:10:37 +0100 |
commit | f0d928b56eb3cf34bd61a94ccdaeedafd8108c49 (patch) | |
tree | cace3dc35ca1614f15c5f1c3aaee839a4ceb4a13 /test/v4l2_videodevice/request_buffers.cpp | |
parent | cadae67e45785dc5dc005adb63c2dec841f44b1d (diff) |
test: v4l2_videodevice: Switch to FrameBuffer interface
The V4L2VideoDevice class can now operate using a FrameBuffer interface,
switch all test cases to use it.
Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'test/v4l2_videodevice/request_buffers.cpp')
-rw-r--r-- | test/v4l2_videodevice/request_buffers.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/test/v4l2_videodevice/request_buffers.cpp b/test/v4l2_videodevice/request_buffers.cpp index c4aedf7b..1dd65b05 100644 --- a/test/v4l2_videodevice/request_buffers.cpp +++ b/test/v4l2_videodevice/request_buffers.cpp @@ -16,17 +16,10 @@ public: protected: int run() { - /* - * TODO: - * Test invalid requests - * Test different buffer allocations - */ const unsigned int bufferCount = 8; - pool_.createBuffers(bufferCount); - - int ret = capture_->exportBuffers(&pool_); - if (ret) + int ret = capture_->exportBuffers(bufferCount, &buffers_); + if (ret != bufferCount) return TestFail; return TestPass; |