| Message ID | 20260416023021.626949-31-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=1776306688; bh=/fm4fXdDsRI8fHBARHbsUlKUs8rVppXKMH1D9mxcx+8=; 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=jNVIGODlb+mnl7t7+VdnTwS5oI2sj8OYEEiSX/klLLYKTR9YXhvQ/gG9iiv9eajNO jkfvKxhyKwN3It4E3LfNRzd/avwGR9K8AhXQ6iX1ChKFeUR996y5Ml7dW5nCrqdPNj 7B9ePKkX+FMhsWCtKmYqVOokSyLHZVJgpAR9ir/w= Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id E6CB46A4BC for <u-boot-concept@u-boot.org>; Wed, 15 Apr 2026 20:31:28 -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 cbged8NaqLsR for <u-boot-concept@u-boot.org>; Wed, 15 Apr 2026 20:31:28 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1776306687; bh=/fm4fXdDsRI8fHBARHbsUlKUs8rVppXKMH1D9mxcx+8=; 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=rgMJtZi4EoRUdg4GKaylscpsbFy6Cz0Qy5mXI/Y1Su3Z0rNF+1CDTGqFhqe3UXpBt 5XQNSo2Hu0K0M0W3tsHwx+rOmIksg85RACjhkKDRIFGrqzNii8ggWwrm0QwhwPuajy pBZgjg8S99lIb67Os1kgE1Lns4GcqDGJJIdmPkkY= Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 3449C6A4C1 for <u-boot-concept@u-boot.org>; Wed, 15 Apr 2026 20:31:27 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1776306681; bh=m8hnvtb5pcHeFVDQCOcmYs6qfHKUhCE25p+ndVU+yf4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f5qOL4Au+7CqqLiVuVoLqWhu5fVHVGTvywo+vv9MBnCg5DD6ChnCfArODCNP6zcTp 0NzgcGrVOsm96/K1ulWemIechdC7aYokzWt4q9OxL27na+lVrSkQbFpnEr3ttuR0vB Bsvq66pDojJRQMVvBBtLpNfw4vj8ODrnbLZvrikQ= Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id DAC096A4C9; Wed, 15 Apr 2026 20:31:21 -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 ya0nJ3bO7x-M; Wed, 15 Apr 2026 20:31:21 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1776306680; bh=M6wjB7AQNO1uRUbkqAbYai+CTPvwck+4RafxC+v5NU0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eokSRihWxe3r3LD7BHqVKV3HTwo70KZokrVW/w6BZcLaztsbgAWFo4V03ZwtYseEl PdTrFSBuXkNO/O78bCg0P3RAnBD3llPzt1SqOLXJrJFeJMxAuUwEw7bJR7oeeJa4kz xPIh3jjKsNei1W7msFZ5rn1Afdsk9m65IJgUfLW8= Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 5C3106A4B8; Wed, 15 Apr 2026 20:31:20 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Wed, 15 Apr 2026 20:29:55 -0600 Message-ID: <20260416023021.626949-31-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: LUSADKVTM3PZQLGNJMQGMZVYWCHGRVHB X-Message-ID-Hash: LUSADKVTM3PZQLGNJMQGMZVYWCHGRVHB 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 30/33] test: boot: Clean up DM state after bootstd_images() 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/LUSADKVTM3PZQLGNJMQGMZVYWCHGRVHB/> 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> Like bootflow_cmdline(), bootstd_images() scans for bootflows and binds extra MMC nodes but declares itself with only UTF_CONSOLE, so the DM teardown path never runs. This leaks around 55KB of device state per run. Add UTF_DM and UTF_SCAN_FDT to match the other bootflow tests. Signed-off-by: Simon Glass <sjg@chromium.org> --- test/boot/bootflow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/boot/bootflow.c b/test/boot/bootflow.c index c4be33a63c2..9648ecb7b99 100644 --- a/test/boot/bootflow.c +++ b/test/boot/bootflow.c @@ -1662,7 +1662,7 @@ static int bootstd_images(struct unit_test_state *uts) return 0; } -BOOTSTD_TEST(bootstd_images, UTF_CONSOLE); +BOOTSTD_TEST(bootstd_images, UTF_DM | UTF_SCAN_FDT | UTF_CONSOLE); /* Check creation of ad-hoc images */ static int bootstd_adhoc(struct unit_test_state *uts)