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" };