File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -101,12 +101,17 @@ void MockedLevelZeroTestEnvironment::SetUp() {
101
101
setenv (" UMF_ZE_LOADER_LIB_NAME" , lib_name, 1 );
102
102
#endif
103
103
104
- void *lib_handle = utils_open_library (lib_name, 0 );
104
+ void *lib_handle =
105
+ utils_open_library (lib_name, UMF_UTIL_OPEN_LIBRARY_NO_LOAD);
105
106
ASSERT_NE (lib_handle, nullptr );
106
107
107
- l0interface = static_cast <LevelZero **>(
108
- utils_get_symbol_addr (lib_handle, " level_zero_mock" , lib_name));
108
+ void *l0interface_sym =
109
+ utils_get_symbol_addr (lib_handle, " level_zero_mock" , lib_name);
110
+ ASSERT_NE (l0interface_sym, nullptr );
111
+
112
+ l0interface = static_cast <LevelZero **>(l0interface_sym);
109
113
ASSERT_NE (l0interface, nullptr );
114
+
110
115
ASSERT_EQ (*l0interface, nullptr );
111
116
}
112
117
void MockedLevelZeroTestEnvironment::TearDown () {}
You can’t perform that action at this time.
0 commit comments