From 76dc8c1c9d3b30d4954d2e4cd449e3b35f1832c7 Mon Sep 17 00:00:00 2001 From: Daniel Brondani Date: Wed, 11 Feb 2026 07:47:24 +0100 Subject: [PATCH] [rtemodel] Suppress info message concerning RTE header file recreation (#1415) --- libs/rtemodel/src/RteTarget.cpp | 9 +++------ tools/projmgr/test/src/ProjMgrUnitTests.cpp | 2 -- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/libs/rtemodel/src/RteTarget.cpp b/libs/rtemodel/src/RteTarget.cpp index f6adb0412..c6570e604 100644 --- a/libs/rtemodel/src/RteTarget.cpp +++ b/libs/rtemodel/src/RteTarget.cpp @@ -6,7 +6,7 @@ */ /******************************************************************************/ /* - * Copyright (c) 2020-2025 Arm Limited. All rights reserved. + * Copyright (c) 2020-2026 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 */ @@ -2067,11 +2067,8 @@ bool RteTarget::GenerateRteHeaderFile(const string& headerName, const string& co return true; } - // file does not exist or its content is different - if (RteFsUtils::CopyBufferToFile(headerFile, oss.str(), false) // write file - && !GetProject()->ShouldUpdateRte() && !bRegionsHeader) { - callback->OutputInfoMessage("Constructed file " + headerFile + " was recreated"); - } + // file does not exist or its content is different, write file + RteFsUtils::CopyBufferToFile(headerFile, oss.str(), false); return true; } // End of RteTarget.cpp diff --git a/tools/projmgr/test/src/ProjMgrUnitTests.cpp b/tools/projmgr/test/src/ProjMgrUnitTests.cpp index 4ba5c3240..4f43a3f53 100644 --- a/tools/projmgr/test/src/ProjMgrUnitTests.cpp +++ b/tools/projmgr/test/src/ProjMgrUnitTests.cpp @@ -3911,8 +3911,6 @@ TEST_F(ProjMgrUnitTests, RunProjMgr_NoUpdateRTEFiles) { argv[7] = (char*)"--cbuildgen"; EXPECT_EQ(1, RunProjMgr(8, argv, m_envp)); - EXPECT_NE(streamRedirect.GetOutString().find("RTE/_TEST_TARGET/RTE_Components.h was recreated"), string::npos); - // Only constructed files are created in the RTE folder GetFilesInTree(rteFolder, rteFiles); const set expected = { "RTE_Components.h", "_TEST_TARGET" };