From patchwork Thu Apr 23 23:00:46 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 26546 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 EC3E7BDCB5 for ; Thu, 23 Apr 2026 23:01:51 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 75F0862FDD; Fri, 24 Apr 2026 01:01:51 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="DIZjaTW0"; 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 7C93962FB7 for ; Fri, 24 Apr 2026 01:01:34 +0200 (CEST) Received: from killaraus.ideasonboard.com (2001-14ba-703d-e500--2a1.rev.dnainternet.fi [IPv6:2001:14ba:703d:e500::2a1]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id F330BC77 for ; Fri, 24 Apr 2026 00:59:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1776985195; bh=NLKSu4ahEffnyIzmiQhApix/r2n0nFFWD7S65XMZhVQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DIZjaTW0qbPd01GFlUdnkE+F7Bx0C54g/wS7Gxo1LwENALmxM49zOdHlvV01TK8JU rR/NFnlXp3d6wvn5n75mXpEkKkR3JkrHBhqvxem/Acm0pV1q6DHMsuBRAU31yH3VDS QAsWwotQ4divHbwI0LPEm861kylJuMJMM4/yrJjs= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Subject: [PATCH v3 24/37] test: yaml-parser: Fix typos in error messages Date: Fri, 24 Apr 2026 02:00:46 +0300 Message-ID: <20260423230059.3180987-25-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260423230059.3180987-1-laurent.pinchart@ideasonboard.com> References: <20260423230059.3180987-1-laurent.pinchart@ideasonboard.com> 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" The unit test contains a few typos in error messages. Fix them. Signed-off-by: Laurent Pinchart --- test/yaml-parser.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/yaml-parser.cpp b/test/yaml-parser.cpp index e8fd9ad61cd0..a4b26c17e1f9 100644 --- a/test/yaml-parser.cpp +++ b/test/yaml-parser.cpp @@ -71,13 +71,13 @@ protected: /* Test parsing invalid YAML file. */ File file{ invalidYamlFile_ }; if (!file.open(File::OpenModeFlag::ReadOnly)) { - std::cerr << "Fail to open invalid YAML file" << std::endl; + std::cerr << "Failed to open invalid YAML file" << std::endl; return TestFail; } std::unique_ptr root = YamlParser::parse(file); if (root) { - std::cerr << "Invalid YAML file parse successfully" << std::endl; + std::cerr << "Invalid YAML file parsed successfully" << std::endl; return TestFail; } @@ -199,14 +199,14 @@ protected: auto &level1Obj = (*root)["level1"]; if (!level1Obj.isDictionary()) { - std::cerr << "level1 object fail to parse as Dictionary" << std::endl; + std::cerr << "level1 object failed to parse as Dictionary" << std::endl; return TestFail; } auto &level2Obj = level1Obj["level2"]; if (!level2Obj.isList() || level2Obj.size() != 2) { - std::cerr << "level2 object should be a 2 elements list" << std::endl; + std::cerr << "level2 object should be a 2 element list" << std::endl; return TestFail; } @@ -215,7 +215,7 @@ protected: firstElement.size() != 2 || firstElement[0].get(0) != 1 || firstElement[1].get(0) != 2) { - std::cerr << "The first element of level2 object fail to parse as integer list" << std::endl; + std::cerr << "The first element of level2 object failed to parse as integer list" << std::endl; return TestFail; } @@ -231,7 +231,7 @@ protected: !secondElement.contains("two") || secondElement["one"].get(0) != 1 || secondElement["two"].get(0) != 2) { - std::cerr << "The second element of level2 object fail to parse as dictionary" << std::endl; + std::cerr << "The second element of level2 object failed to parse as dictionary" << std::endl; return TestFail; }