| Message ID | 20260416023021.626949-14-sjg@u-boot.org |
|---|---|
| State | New |
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> 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=1776306669; bh=fBHVdNBOnE9fmjdWGg1cbo9n4q6PclhGxqW4hwPEHVo=; 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=ny8fcN2we3jrocDV5tmoNhnxrPOMLXrcRyhq9x0Wr3Yx2LaBWR8PlHMzFRpHijYq6 0YawoddbvxJWapWS6dBeZRxSAPtARegTdFouKp2rB+E0a7b/ymyr+RGrj9n/UlJkJf 0fyPfvCzueaa8DcjXpsEOTNOHix6EVVgwSf78hno= Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 99A766A4BE for <u-boot-concept@u-boot.org>; Wed, 15 Apr 2026 20:31:09 -0600 (MDT) 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 GxglfbJuGiQp for <u-boot-concept@u-boot.org>; Wed, 15 Apr 2026 20:31:09 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1776306667; bh=fBHVdNBOnE9fmjdWGg1cbo9n4q6PclhGxqW4hwPEHVo=; 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=Rvn25COpyDXZUcgD3wa1zes0DEhUx3vQGA4lgbAb9Yqa0SIlJKK8IqZyN20mC+dkt fWDDh43WoVIH8c/nQ6CmeDlEgEEr1j8ruRuAwXDY+a5OpZL1cHMSVwl4TbYncCY76s +GSXfOqLY5B/U0nhSvBZZXqxww1bj+wf1RdehU50= Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 195366A4A5 for <u-boot-concept@u-boot.org>; Wed, 15 Apr 2026 20:31:07 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1776306664; bh=UnyCYkldWzBYd2qlyG0ZBhwOZoJtJ+k/59xH4Pf/0sM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OHpwLQunN5qH/BAwJnwKP5ohG1xzU5/+MfxM6Otp4XZF2Qnfwbh4HrLWzdbLXUg2+ XSvuu4xDPSIEOXfRyJmp4HcR6o0geg+gREA2B+5qwQ/Y0pUMMMgzvsAp2bo1eLfMI7 r3SdwzsdNYUFkbA2qFf6Ziqqx9RD5ilwU/WUl7Ak= Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 9F14F6A4A0; Wed, 15 Apr 2026 20:31:04 -0600 (MDT) 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 aTJZ7UoiSajo; Wed, 15 Apr 2026 20:31:04 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1776306660; bh=Iuii543z4mwdVzgNs2g28F+yfGixWe3qf2IrRSzdQ0M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZDdZeihN3wT67glaqF4+HN3Bb0wqsQDwblTWQ5hSlfF/+b2du5K+M/AjQm8ieW9Bh U75UAg9yv7ckLiox8dj86DRaxKQ2hop3arQhSu+HVitydHAdFemZxijv6ae+xHw/j6 euRO1Rc5jWZvHKj8WwZ3OWZAl6gbva4PWx5t0W3c= Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 8B1EE6A4BD; Wed, 15 Apr 2026 20:31:00 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Wed, 15 Apr 2026 20:29:38 -0600 Message-ID: <20260416023021.626949-14-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260416023021.626949-1-sjg@u-boot.org> References: <20260416023021.626949-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: SV7M2PMREQPEBZG6CP2L6Y4PUMCRKOI3 X-Message-ID-Hash: SV7M2PMREQPEBZG6CP2L6Y4PUMCRKOI3 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: Simon Glass <sjg@chromium.org> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 13/33] test: video: Restore auto-sync at end of video_sync_damage List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/SV7M2PMREQPEBZG6CP2L6Y4PUMCRKOI3/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
Fix memory leaks and test pollution in sandbox tests
|
|
Commit Message
Simon Glass
April 16, 2026, 2:29 a.m. UTC
From: Simon Glass <sjg@chromium.org> dm_test_video_sync_damage() sets video_set_manual_sync(true) so that its assertions can observe the damage rectangle in isolation from automatic syncs. The mirror test dm_test_video_manual_sync() puts the flag back to false on exit, but this one falls out of the function with the flag still set. Any later test that relies on video_sync() actually copying fb to copy_fb then fails spuriously. Reset the flag before returning, matching dm_test_video_manual_sync so the two tests can run in any order and leave the global video state as they found it. Signed-off-by: Simon Glass <sjg@chromium.org> --- test/dm/video.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/test/dm/video.c b/test/dm/video.c index f97e2183a64..18d257e39f4 100644 --- a/test/dm/video.c +++ b/test/dm/video.c @@ -1618,6 +1618,9 @@ static int dm_test_video_sync_damage(struct unit_test_state *uts) /* Check priv->damage after sync - should be reset to inverted/empty */ ut_assert(!vid_bbox_valid(&priv->damage)); + /* Restore auto-sync so later tests see the default behaviour */ + video_set_manual_sync(false); + return 0; } DM_TEST(dm_test_video_sync_damage, UTF_SCAN_PDATA | UTF_SCAN_FDT);