fix: cleanup memory leaks in ocloc

- enable memory leaks detection in ocloc tests

Related-To: NEO-7467

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2023-04-18 11:17:54 +00:00
committed by Compute-Runtime-Automation
parent bab299ee78
commit 97a8f15fbd
8 changed files with 78 additions and 32 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2022 Intel Corporation
* Copyright (C) 2022-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -11,10 +11,11 @@ namespace NEO {
std::set<std::string> virtualFileList;
void VirtualFileSystemListener::OnTestStart(const ::testing::TestInfo &testInfo) {
virtualFileList.clear();
}
void VirtualFileSystemListener::OnTestEnd(const ::testing::TestInfo &) {}
void VirtualFileSystemListener::OnTestEnd(const ::testing::TestInfo &) {
virtualFileList.clear();
}
void VirtualFileSystemListener::OnTestProgramStart(const testing::UnitTest &) {}
void VirtualFileSystemListener::OnTestIterationStart(const testing::UnitTest &, int) {}
void VirtualFileSystemListener::OnEnvironmentsSetUpStart(const testing::UnitTest &) {}