diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-02-02 17:30:33 +0000 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-02-04 14:14:51 +0000 |
commit | 7fa1a82811976681fde68a3336b466bf86389f59 (patch) | |
tree | ced5faee96aff71e1197c089128f8b6b10b76f19 /test | |
parent | 336de7afd2acc2b8c5e24be19d0d90271ebb5021 (diff) |
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>
Diffstat (limited to 'test')
-rw-r--r-- | test/camera/buffer_import.cpp | 2 | ||||
-rw-r--r-- | test/camera/capture.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/camera/buffer_import.cpp b/test/camera/buffer_import.cpp index 7ff62826..61f4eb92 100644 --- a/test/camera/buffer_import.cpp +++ b/test/camera/buffer_import.cpp @@ -138,7 +138,7 @@ protected: while (timer.isRunning()) dispatcher->processEvents(); - if (completeRequestsCount_ <= cfg.bufferCount * 2) { + if (completeRequestsCount_ < cfg.bufferCount * 2) { std::cout << "Failed to capture enough frames (got " << completeRequestsCount_ << " expected at least " << cfg.bufferCount * 2 << ")" << std::endl; diff --git a/test/camera/capture.cpp b/test/camera/capture.cpp index 6d564fe4..c4bc2110 100644 --- a/test/camera/capture.cpp +++ b/test/camera/capture.cpp @@ -142,7 +142,7 @@ protected: unsigned int nbuffers = allocator_->buffers(stream).size(); - if (completeRequestsCount_ <= nbuffers * 2) { + if (completeRequestsCount_ < nbuffers * 2) { cout << "Failed to capture enough frames (got " << completeRequestsCount_ << " expected at least " << nbuffers * 2 << ")" << endl; |