mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 00:24:58 +08:00
refactor: reset all waitpkg variables on test start
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
dacbce7f01
commit
be8545f7df
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user