mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 10:17:01 +08:00
Remove redundant MockCompilerEnableGuard instances
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
c7cd14cce7
commit
670926c9b6
@@ -617,7 +617,6 @@ TEST(TranslateTest, whenAnyArgIsNullThenNullptrIsReturnedAndTranslatorIsNotInvok
|
||||
}
|
||||
|
||||
TEST(LoadCompilerTest, whenEverythingIsOkThenReturnsTrueAndValidOutputs) {
|
||||
MockCompilerEnableGuard mock;
|
||||
std::unique_ptr<NEO::OsLibrary> retLib;
|
||||
CIF::RAII::UPtr_t<CIF::CIFMain> retMain;
|
||||
bool retVal = loadCompiler<IGC::IgcOclDeviceCtx>("", retLib, retMain);
|
||||
@@ -627,7 +626,6 @@ TEST(LoadCompilerTest, whenEverythingIsOkThenReturnsTrueAndValidOutputs) {
|
||||
}
|
||||
|
||||
TEST(LoadCompilerTest, whenCouldNotLoadLibraryThenReturnFalseAndNullOutputs) {
|
||||
MockCompilerEnableGuard mock;
|
||||
std::unique_ptr<NEO::OsLibrary> retLib;
|
||||
CIF::RAII::UPtr_t<CIF::CIFMain> retMain;
|
||||
bool retVal = loadCompiler<IGC::IgcOclDeviceCtx>("_falseName.notRealLib", retLib, retMain);
|
||||
@@ -639,7 +637,6 @@ TEST(LoadCompilerTest, whenCouldNotLoadLibraryThenReturnFalseAndNullOutputs) {
|
||||
TEST(LoadCompilerTest, whenCreateMainFailsThenReturnFalseAndNullOutputs) {
|
||||
NEO::failCreateCifMain = true;
|
||||
|
||||
MockCompilerEnableGuard mock;
|
||||
std::unique_ptr<NEO::OsLibrary> retLib;
|
||||
CIF::RAII::UPtr_t<CIF::CIFMain> retMain;
|
||||
bool retVal = loadCompiler<IGC::IgcOclDeviceCtx>("", retLib, retMain);
|
||||
@@ -651,7 +648,7 @@ TEST(LoadCompilerTest, whenCreateMainFailsThenReturnFalseAndNullOutputs) {
|
||||
}
|
||||
|
||||
TEST(LoadCompilerTest, whenEntrypointInterfaceIsNotCompatibleThenReturnFalseAndNullOutputs) {
|
||||
MockCompilerEnableGuard mock;
|
||||
|
||||
std::unique_ptr<NEO::OsLibrary> retLib;
|
||||
CIF::RAII::UPtr_t<CIF::CIFMain> retMain;
|
||||
bool retVal = loadCompiler<IGC::GTSystemInfo>("", retLib, retMain);
|
||||
@@ -664,7 +661,6 @@ TEST(LoadCompilerTest, GivenZebinIgnoreIcbeVersionDebugFlagThenIgnoreIgcsIcbeVer
|
||||
DebugManagerStateRestore dbgRestore;
|
||||
DebugManager.flags.ZebinIgnoreIcbeVersion.set(true);
|
||||
|
||||
MockCompilerEnableGuard mock;
|
||||
std::unique_ptr<NEO::OsLibrary> retLib;
|
||||
CIF::RAII::UPtr_t<CIF::CIFMain> retMain;
|
||||
bool retVal = loadCompiler<IGC::IgcOclDeviceCtx>("", retLib, retMain);
|
||||
|
||||
Reference in New Issue
Block a user