mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Use mock environment vars in tests
Related-To: NEO-4922 Change-Id: Ibf357b1db24ab63d2af6171cd66b5de2671b519c Signed-off-by: Konstanty Misiak <konstanty.misiak@intel.com>
This commit is contained in:

committed by
sys_ocldev

parent
fb0651521d
commit
493434c8e9
@ -41,7 +41,7 @@ inline char *mockGetenv(const char *name) noexcept {
|
||||
if (mockableEnvValues != nullptr && mockableEnvValues->find(name) != mockableEnvValues->end()) {
|
||||
return const_cast<char *>(mockableEnvValues->find(name)->second.c_str());
|
||||
}
|
||||
return getenv(name);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
} // namespace IoFunctions
|
||||
|
Reference in New Issue
Block a user