From patchwork Sun Dec 7 20:16:11 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 826 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1765138666; bh=duSkUvoTSMiFp2mHlGYk9N7wBcA89IGr6vT3v8lESDQ=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=OBrEBBzMQK18XrZ61Ve5b4/p8JinI2fYLVwP7AYAj1S0j+fhDQ793Ptg5AiDFIow8 +GJM/m04ixi4vyKAraf8zmTc04vNPkqGJNORP8Dmy1uHQqRmN1dSaXboVnufKWF3vC u94gw7CrJ2nLiiLnV8QkUob3SHGgo7JByBcbJfIvaf0Do0Gd16FM+w1DacuQwRdQ/o HYExGNxnGZud5Eprk5PdHbSMZx/xVcUq6eq6lO/8qGUKz7Dk3f4RpYu1GXJ4BmF7fg leXjiSuqMGNneUv9yiHYmpv0z6a++5//s1FoiMUPc9uUb53TdV8aqjrQtiJIvb+mGz Rrv5rtxfw7XIg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 4A4D568950 for ; Sun, 7 Dec 2025 13:17:46 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 6LWbLKV45Oqk for ; Sun, 7 Dec 2025 13:17:46 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1765138664; bh=duSkUvoTSMiFp2mHlGYk9N7wBcA89IGr6vT3v8lESDQ=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=LEaOKVF62tSXle7ANJ55L3AqKCKDTf1Tgort9fiTrQ8DdUj1zQ254iUs4Rj1ML1zJ 15gN0QrRgsWNuEz31jfY91FhN/m4/gHuUmn71ozKSRR0qMrkgp3czVAQu0y8l8/4TX 3p0WKcMt3IKLR9xrqMxgwThR7MU/Hnw0JrRXPm84RQB9ETRecar40X/5r+/VgFCxdP utD1JQ71ru8vkbl8D0M0LANHTGXbCvuOR4TF6do/5mm351c+sN4sBR9Aadv2cmXNtv RU1A5HOT4Hd+oufNCU0+RkCQrsyF9PDVGg2mZyjBsg7UaB22+L6wdKX6g9SP+I1cT+ l9gB7ib6aeZQw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 74E79689B5 for ; Sun, 7 Dec 2025 13:17:44 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1765138662; bh=CP8HeFGp2x4SSKI4WwBzFATNfT/w56m20KAFJdVFi8w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZO4wlxw6E7lCzFRMhN7a8pNOkRCYyVuKovyCzMcXXzh/juqVdukq4V7J5QBaVX5Ul E/LkearvQvylcEeccU2DGCtfO/IKtF0QJHHNNpw2XqZBAtSJrYHxNEsXEF7k4mAcYf kYw4QSMkyabFmI6tUdAu+eSh9gj6EiKEoCcaUb83T0ZXokw4Ec/4KAzQYaVlFd58Lh lkCL4X24vraxod8HZTe983PsNXcX6ht9sYcSooGgVU6IFGDoB/EWetz55a6MhdLPVS 4CDpRjYU2nJ/Pm0wcIpfadkkx/lvQslME070nkXvHqjt1GOrHFX5xyn6fKYYzAr++f nEi0faDAs6t4A== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 749DE689A7; Sun, 7 Dec 2025 13:17:42 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id qBqaPI7e0ujA; Sun, 7 Dec 2025 13:17:42 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1765138662; bh=jrblmbrrqGHVqbCZQjYHYUXLFaOxuIHEYZAIOfQWowE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ChpKC6nmvuX7iSuNW0yBRgdMZa0Z3h+XFrGDLDLAXDSClfj0JNu6YAkT57D1oIgxr jSDF2jvqd6pLqb+VNIvx9S54XHa2wGPJEl7vKSIFXPuF0oOoIueVyQwpIhGzXrKn+m crfydsVpEQBB+vIAUgEKafmCf8O/STktu54IFQzqUC77uR5yMM80IxqboKsWdKppjj dEZ3XOUGqaET0CJ15gBCLd23uHE2izc0hB18IQHCvSO7qZ0Kh7pDp3ozEXl1ua9sxj w29k3a+9GCTMXaUCR6Fw0GM6jZeLG+w10iXAjJJPqi6JZZuSswsXcjP6Vvk9T4V7xh STEgqOC1hGwVw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id CF80E68902; Sun, 7 Dec 2025 13:17:41 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Sun, 7 Dec 2025 13:16:11 -0700 Message-ID: <20251207201628.2882382-15-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251207201628.2882382-1-sjg@u-boot.org> References: <20251207201628.2882382-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: T54OKOQMFWONCV6M7Y77FCHIGINJB3AR X-Message-ID-Hash: T54OKOQMFWONCV6M7Y77FCHIGINJB3AR X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt , Simon Glass , "Claude Opus 4 . 5" X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 14/22] test: cedit: Use UTF_NO_SILENT List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Use the UTF_NO_SILENT flag for cedit_render() instead of manually calling ut_unsilence_console()/ut_silence_console(). This is makes it more obvious that the test needs this handling. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- test/boot/cedit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/boot/cedit.c b/test/boot/cedit.c index 7af3dfa2338..c4d402343fa 100644 --- a/test/boot/cedit.c +++ b/test/boot/cedit.c @@ -352,11 +352,11 @@ static int cedit_render(struct unit_test_state *uts) * vidconsole state, outputs the character and then saves the state * again. If the character is never output, then the state won't be * updated and the textline will be inconsistent. + * + * This is why this test enables UTF_NO_SILENT */ - ut_unsilence_console(uts); for (i = 'a'; i < 'd'; i++) ut_assertok(scene_send_key(scn, i, &evt)); - ut_silence_console(uts); ut_assertok(cedit_arange(exp, vid_priv, scn->id)); ut_assertok(expo_render(exp)); ut_asserteq(5076, video_compress_fb(uts, dev, false)); @@ -366,7 +366,7 @@ static int cedit_render(struct unit_test_state *uts) return 0; } -BOOTSTD_TEST(cedit_render, UTF_DM | UTF_SCAN_FDT); +BOOTSTD_TEST(cedit_render, UTF_DM | UTF_SCAN_FDT | UTF_NO_SILENT); /* Check the cedit displays textlines correctly */ static int cedit_render_textline(struct unit_test_state *uts)