mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Report failure given Compiler Library Load failed for L0
- Return ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE given the Compiler cannot be loaded. - Print dlopen and LoadLibrary error strings given Debug Print Messages are enabled. Related-To: LOCI-1313 Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
95b9880385
commit
7a3095c273
@ -101,4 +101,21 @@ TEST(OSLibraryWinTest, WhenCreatingFullSystemPathThenProperPathIsConstructed) {
|
||||
|
||||
auto fullPath = OsLibrary::createFullSystemPath("test");
|
||||
EXPECT_STREQ("C:\\System\\test", fullPath.c_str());
|
||||
}
|
||||
|
||||
TEST(OSLibraryWinTest, GivenInvalidLibraryWhenOpeningLibraryThenLoadLibraryErrorIsReturned) {
|
||||
std::string errorValue;
|
||||
auto lib = std::make_unique<Windows::OsLibrary>("abc", &errorValue);
|
||||
EXPECT_FALSE(errorValue.empty());
|
||||
}
|
||||
|
||||
TEST(OSLibraryWinTest, GivenNoLastErrorOnWindowsThenErrorStringisEmpty) {
|
||||
std::string errorValue;
|
||||
|
||||
auto lib = std::make_unique<Windows::OsLibrary>(Os::testDllName, &errorValue);
|
||||
EXPECT_NE(nullptr, lib);
|
||||
EXPECT_TRUE(errorValue.empty());
|
||||
lib.get()->getLastErrorString(&errorValue);
|
||||
EXPECT_TRUE(errorValue.empty());
|
||||
lib.get()->getLastErrorString(nullptr);
|
||||
}
|
Reference in New Issue
Block a user