libcamera/test/controls
Jacopo Mondi a2a0e46576 test: controls: control_list: Add status check
Since commit fac471e812 ("test: Extract CameraTest class out of camera
tests to libtest") the control_list is a subclass of CameraTest, and the
status returned by the base class init() operation should be inspected
to avoid accessing uninitialized fields during the run() operation
execution.

If the VIMC test module is not loaded, executing the test results in a
segfault. Fix this by adding the init() operation where to status_ flag
is checked for errors.

Fixes: fac471e812 ("test: Extract CameraTest class out of camera tests to libtest")
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
2019-11-25 09:54:41 +01:00
..
control_info.cpp test: controls: Add ControlInfoMap test 2019-11-20 21:47:22 +02:00
control_list.cpp test: controls: control_list: Add status check 2019-11-25 09:54:41 +01:00
control_range.cpp libcamera: controls: Rename ControlInfo to ControlRange 2019-10-05 20:02:51 +03:00
control_value.cpp libcamera: controls: Use explicit 32-bit integer types 2019-10-04 19:33:08 +03:00
meson.build test: controls: Add ControlInfoMap test 2019-11-20 21:47:22 +02:00