From 7fa1a82811976681fde68a3336b466bf86389f59 Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Tue, 2 Feb 2021 17:30:33 +0000 Subject: test: buffer-import: Fix false-positive failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Niklas Söderlund Reviewed-by: Paul Elder Signed-off-by: Kieran Bingham --- test/camera/buffer_import.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/camera/buffer_import.cpp') 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; -- cgit v1.2.1