mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 15:29:45 +03:00
test: buffer-import: Fix false-positive failure
Running the tests failed with the following error on buffer import: "Failed to capture enough frames (got 8 expected at least 8)" This indicates that the test did in fact capture enough frames as desired by the test. Update the comparison on both buffer-import and capture tests accordingly. Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
336de7afd2
commit
7fa1a82811
2 changed files with 2 additions and 2 deletions
|
@ -138,7 +138,7 @@ protected:
|
||||||
while (timer.isRunning())
|
while (timer.isRunning())
|
||||||
dispatcher->processEvents();
|
dispatcher->processEvents();
|
||||||
|
|
||||||
if (completeRequestsCount_ <= cfg.bufferCount * 2) {
|
if (completeRequestsCount_ < cfg.bufferCount * 2) {
|
||||||
std::cout << "Failed to capture enough frames (got "
|
std::cout << "Failed to capture enough frames (got "
|
||||||
<< completeRequestsCount_ << " expected at least "
|
<< completeRequestsCount_ << " expected at least "
|
||||||
<< cfg.bufferCount * 2 << ")" << std::endl;
|
<< cfg.bufferCount * 2 << ")" << std::endl;
|
||||||
|
|
|
@ -142,7 +142,7 @@ protected:
|
||||||
|
|
||||||
unsigned int nbuffers = allocator_->buffers(stream).size();
|
unsigned int nbuffers = allocator_->buffers(stream).size();
|
||||||
|
|
||||||
if (completeRequestsCount_ <= nbuffers * 2) {
|
if (completeRequestsCount_ < nbuffers * 2) {
|
||||||
cout << "Failed to capture enough frames (got "
|
cout << "Failed to capture enough frames (got "
|
||||||
<< completeRequestsCount_ << " expected at least "
|
<< completeRequestsCount_ << " expected at least "
|
||||||
<< nbuffers * 2 << ")" << endl;
|
<< nbuffers * 2 << ")" << endl;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue