refactor: reset all waitpkg variables on test start

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk 2025-03-11 07:24:52 +00:00 committed by Compute-Runtime-Automation
parent dacbce7f01
commit be8545f7df
3 changed files with 6 additions and 3 deletions

View File

@ -14,9 +14,6 @@ namespace NEO {
namespace WaitUtils {
constexpr uint64_t defaultCounterValue = 10000;
constexpr uint32_t defaultControlValue = 0;
uint64_t waitpkgCounterValue = defaultCounterValue;
uint32_t waitpkgControlValue = defaultControlValue;

View File

@ -17,6 +17,8 @@ namespace NEO {
namespace WaitUtils {
constexpr uint64_t defaultCounterValue = 10000;
constexpr uint32_t defaultControlValue = 0;
constexpr uint32_t defaultWaitCount = 1u;
extern uint64_t waitpkgCounterValue;

View File

@ -22,6 +22,10 @@ extern unsigned int testCaseMaxTimeInMs;
void BaseUltConfigListener::OnTestStart(const ::testing::TestInfo &) {
WaitUtils::waitpkgUse = false;
WaitUtils::waitpkgCounterValue = WaitUtils::defaultCounterValue;
WaitUtils::waitpkgControlValue = WaitUtils::defaultControlValue;
WaitUtils::waitCount = WaitUtils::defaultWaitCount;
maxOsContextCountBackup = MemoryManager::maxOsContextCount;
debugVarSnapshot = debugManager.flags;
injectFcnSnapshot = debugManager.injectFcn;