From df39f27334f89d1288af2f61d7f58e3d17008105 Mon Sep 17 00:00:00 2001 From: Mateusz Hoppe Date: Mon, 20 Jan 2025 12:02:03 +0000 Subject: [PATCH] test: suppress warning prints for skipped Ults Signed-off-by: Mateusz Hoppe --- shared/test/common/fixtures/memory_management_fixture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/test/common/fixtures/memory_management_fixture.cpp b/shared/test/common/fixtures/memory_management_fixture.cpp index 8794e8493c..93e28b574a 100644 --- a/shared/test/common/fixtures/memory_management_fixture.cpp +++ b/shared/test/common/fixtures/memory_management_fixture.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2023 Intel Corporation + * Copyright (C) 2018-2025 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -141,7 +141,7 @@ void MemoryManagementFixture::checkForLeaks() { auto invalidLeakIndexValues = MemoryManagement::invalidLeakIndex; EXPECT_EQ(leakEventIndex, invalidLeakIndexValues); } while (leakEventIndex != MemoryManagement::invalidLeakIndex); - } else { + } else if (!testResult->Skipped()) { printf("*** WARNING: Leaks found but dumping disabled during test failure ***\n"); } }