[libcamera-devel] [PATCH 0/2] Fd leak test

Umang Jain umang.jain at ideasonboard.com
Tue Aug 17 14:26:44 CEST 2021


There is prior RFC version of this. Almost all of the issues
are addressed in this v1.

The first commit allows CameraTest to set the 
LIBCAMERA_IPA_FORCE_ISOLATION env variable. This is necessary since
the test in 2/2 needs to run IPA in isolated mode.

The test tests two things:
- Camera reconfigurations re-runs without stopping CameraManager
- Fd leak across IPA IPA boundary.

Currently the test fails but a fix is already posted to the list:
"ipa: Use FileDescriptor instead of int in layers above IPC payload"

Umang Jain (2):
  libtest: camera_test: Plumb constructor to set
    LIBCAMERA_IPA_FORCE_ISOLATION
  test: camera: Camera reconfiguration and fd-leak test

 test/camera/camera_reconfigure.cpp | 257 +++++++++++++++++++++++++++++
 test/camera/meson.build            |   1 +
 test/libtest/camera_test.cpp       |   5 +-
 test/libtest/camera_test.h         |   2 +-
 4 files changed, 263 insertions(+), 2 deletions(-)
 create mode 100644 test/camera/camera_reconfigure.cpp

-- 
2.31.1



More information about the libcamera-devel mailing list