From patchwork Mon Jul 14 13:13:26 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= X-Patchwork-Id: 23805 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 302ECBE175 for ; Mon, 14 Jul 2025 13:13:32 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 1E51C68F3F; Mon, 14 Jul 2025 15:13:31 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="WRGJPVkw"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 728CD6186C for ; Mon, 14 Jul 2025 15:13:29 +0200 (CEST) Received: from pb-laptop.local (185.221.140.39.nat.pool.zt.hu [185.221.140.39]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 7D3F5109A; Mon, 14 Jul 2025 15:12:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1752498777; bh=8GoGrXoA8q+k9dh5bXJyFOk4Yfw2w6Lq/Oqg1KStDd0=; h=From:To:Subject:Date:From; b=WRGJPVkwenMGWvZNJDdQw7uqZgvC0Gde8c8WrfYCq28zrR5aPa27Fvt/gRVHPbjqW Erdf2LrB+CCC0txMRXqnf98Dya6QPJmo5EE7p69Mx5TvvWb/ynwSeZQe/V1k6kARd7 iE9wYmfoCht0zHwKGz+7+IFWgUimTooPTjjf5x/Q= From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= To: libcamera-devel@lists.libcamera.org, Laurent Pinchart Subject: [PATCH v1] test: libtest: CameraTest: Set env var before CameraManager Date: Mon, 14 Jul 2025 15:13:26 +0200 Message-ID: <20250714131326.1279434-1-barnabas.pocze@ideasonboard.com> X-Mailer: git-send-email 2.50.1 MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Set the `LIBCAMERA_IPA_FORCE_ISOLATION` environmental variable before constructing the `CameraManager` object. This makes it available during construction (some components might want to query environmental variables at that time). Signed-off-by: Barnabás Pőcze Reviewed-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- test/libtest/camera_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/libtest/camera_test.cpp b/test/libtest/camera_test.cpp index fe13d6acf..6fb44989d 100644 --- a/test/libtest/camera_test.cpp +++ b/test/libtest/camera_test.cpp @@ -15,11 +15,11 @@ using namespace std; CameraTest::CameraTest(const char *name, bool isolate) { - cm_ = new CameraManager(); - if (isolate) setenv("LIBCAMERA_IPA_FORCE_ISOLATION", "1", 1); + cm_ = new CameraManager(); + if (cm_->start()) { cerr << "Failed to start camera manager" << endl; status_ = TestFail;