From patchwork Wed Dec 6 21:05:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 19297 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 1F562C32BD for ; Wed, 6 Dec 2023 21:05:24 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id C65B962B3F; Wed, 6 Dec 2023 22:05:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1701896723; bh=Y0qLLmJmb7hWO3XbKSizWDexIQw5YU4gUk+zj2merFs=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=gDeYZCTFwifRitpTElS9giw5yjzOA5FTyVwjynGVg7HmbpRcnENZrNSqErYrmAC+m 9lAz0ztOLMMGpxJ8f/bIjcan+XscyNOTnn8IMbqNruZI74iDawHJ7NDVp7CFseRSEj KBBPLSvFhdqchNBX+ZgEAyTPTDpsyzLdU1/hYElE7hwoAG3G5Ey0v6gdI39hPBcu3F sMlgRJ9nEwuCPTXtt59/IhlMA8roL0/rx/9RzCcKwjCbD7hkg1KNJa6vSR5icpP7sY t1ZOsqMl1W8MwfcxfT5atPbDsg32xn2noWkYe02y3I1Gd7Kz1QEz9b9OJHSuAYbBFR R9/s4CBztms8A== 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 2A60062B3E for ; Wed, 6 Dec 2023 22:05:22 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="c/GubRmh"; dkim-atps=neutral Received: from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi [213.243.189.158]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 15DFB556 for ; Wed, 6 Dec 2023 22:04:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1701896681; bh=Y0qLLmJmb7hWO3XbKSizWDexIQw5YU4gUk+zj2merFs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=c/GubRmhNdab3SAvK+XAb0Sg+xW3I3zMcHO/4yY5HNMtABQOaL59J4ghxbeUs32Kx YMaGJEAFIS7u4bgG2hLAUXYS1iJk5HyOSFq3xzpXX4AGrSvIkkIyPe2IvKrqxpEgz2 Ljx1J+7HRlk2R5cy8XOUpQ5uCcsoSrqBpiFXaCpY= To: libcamera-devel@lists.libcamera.org Date: Wed, 6 Dec 2023 23:05:21 +0200 Message-ID: <20231206210524.20974-4-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231206210524.20974-1-laurent.pinchart@ideasonboard.com> References: <20231206210524.20974-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 3/6] test: log: log_process: Improve debugging on process exit failures 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: , X-Patchwork-Original-From: Laurent Pinchart via libcamera-devel From: Laurent Pinchart Reply-To: Laurent Pinchart Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" When the process fails to run and exit normally, the test prints an error message that provides little information: process did not exit normally Expand the error message to print the exit status to make debugging easier. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham Reviewed-by: Umang Jain --- test/log/log_process.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/log/log_process.cpp b/test/log/log_process.cpp index f7635b70255c..fb6635cc99aa 100644 --- a/test/log/log_process.cpp +++ b/test/log/log_process.cpp @@ -86,7 +86,8 @@ protected: dispatcher->processEvents(); if (exitStatus_ != Process::NormalExit) { - cerr << "process did not exit normally" << endl; + cerr << "process did not exit normally: " << exitStatus_ + << endl; return TestFail; }