[libcamera-devel] [PATCH 3/3] test: list-cameras: skip if no camera is available

You-Sheng Yang vicamo.yang at canonical.com
Sat Jul 25 14:24:42 CEST 2020


Signed-off-by: You-Sheng Yang <vicamo.yang at canonical.com>
---
 test/list-cameras.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/list-cameras.cpp b/test/list-cameras.cpp
index e6a407a..f4cd3b7 100644
--- a/test/list-cameras.cpp
+++ b/test/list-cameras.cpp
@@ -26,7 +26,7 @@ protected:
 			return TestFail;
 		}
 
-		return 0;
+		return cm_->cameras().size() ? TestPass : TestSkip;
 	}
 
 	int run()
-- 
2.27.0



More information about the libcamera-devel mailing list