| Message ID | 20260416023021.626949-32-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=1776306689; bh=qF2sXdBPe1ViNkrgpoa3JuxWbXFGIz4dTSF6FACzhGs=; 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=oP1U7Wjdzks40eqlJ8OEnt+Iq8PP8DQF2K4tiTQzCvNtnsW+QNCDq7cET7Jl6Ihp8 0+cPXBioDgD6MbW2AM8iaqi3o4dgdezo3bWVvtdVzPrYKRAV+leAlSjsF0p5rFb6+M Qtm3BNq4JgNz4tcXeJPxbdQquhDHrdrnG+eg3fqk= Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 409476A4A9 for <u-boot-concept@u-boot.org>; Wed, 15 Apr 2026 20:31:29 -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 2KLha8OSsMPR for <u-boot-concept@u-boot.org>; Wed, 15 Apr 2026 20:31:29 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1776306689; bh=qF2sXdBPe1ViNkrgpoa3JuxWbXFGIz4dTSF6FACzhGs=; 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=oP1U7Wjdzks40eqlJ8OEnt+Iq8PP8DQF2K4tiTQzCvNtnsW+QNCDq7cET7Jl6Ihp8 0+cPXBioDgD6MbW2AM8iaqi3o4dgdezo3bWVvtdVzPrYKRAV+leAlSjsF0p5rFb6+M Qtm3BNq4JgNz4tcXeJPxbdQquhDHrdrnG+eg3fqk= Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 114156A4C0 for <u-boot-concept@u-boot.org>; Wed, 15 Apr 2026 20:31:29 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1776306686; bh=PkwiEw4rd4CJR4nZu8K1wLK3G+UqaL26N1mmQ33KoR0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XRau1NfwLkcFHoCcA5KEQtw+hpTOu+BKsEl0aRll8zu8CluYEEp6fl+AyWHFfOB9W QQqnSeWbELHw8JcPF7VUPcqz70r/RZ5VF/w9+BXjBCt2y800IEEiiUd7iWUvGCJcCS +Ax740WHmrWJJPFNYj3Qmav3OllxuLqOI/kIPPHA= Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 52B1C6A4D9; Wed, 15 Apr 2026 20:31:26 -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 uU7OwTRFwTbY; Wed, 15 Apr 2026 20:31:26 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1776306682; bh=3twC38xJ+uS28MVsPxIkQe19+bsqjClEXuV4BqlfLuU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N35qijP9Gm670kWWq3gnMOzmoED+srY1VGBlUJoydItXd4m6TtPZIf1kJ7KEQcHWq Z6vU+2nS1kKyT6D5IDji7FxHyFDtQJw/OpkHYAEnNMJKg8QyLnM8uYmkAxQZZbdu46 TpLhwkJfVnIDdYQRkFyLBNPDzomHnRpypBCZUvZ8= Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id C8C046A4C7; Wed, 15 Apr 2026 20:31:21 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Wed, 15 Apr 2026 20:29:56 -0600 Message-ID: <20260416023021.626949-32-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: KQNPIZLWGR7YOAMAOBSKKHYPC2WWFZN2 X-Message-ID-Hash: KQNPIZLWGR7YOAMAOBSKKHYPC2WWFZN2 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 31/33] test: boot: Clean up DM state after bootstd_adhoc() 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/KQNPIZLWGR7YOAMAOBSKKHYPC2WWFZN2/> 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() and bootstd_images(), bootstd_adhoc() loads from MMC but does not enable UTF_DM so nothing unwinds the probed devices afterwards. Add UTF_DM and UTF_SCAN_FDT to match the other tests. Note: bootflow_efi() has the same issue, but we cannot enable UTF_DM in that test, since it causes memory corruption, due to a conflict between the lifetimes of the EFI subsystem and driver model. This is left for a future effort. 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 9648ecb7b99..a2a0a7eeb1e 100644 --- a/test/boot/bootflow.c +++ b/test/boot/bootflow.c @@ -1682,7 +1682,7 @@ static int bootstd_adhoc(struct unit_test_state *uts) return 0; } -BOOTSTD_TEST(bootstd_adhoc, UTF_CONSOLE); +BOOTSTD_TEST(bootstd_adhoc, UTF_DM | UTF_SCAN_FDT | UTF_CONSOLE); /* Check scanning extlinux, adjusting cmdline and booting */ static int bootflow_scan_extlinux(struct unit_test_state *uts)